Lines Matching refs:dialog
80 ok_dialog(GtkWidget *entry, gpointer dialog)
82 g_return_if_fail(GTK_IS_DIALOG(dialog));
83 gtk_dialog_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
92 GtkWidget *dialog, *entry;
99 dialog = gtk_message_dialog_new(NULL, 0,
106 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), entry, FALSE,
112 gtk_window_set_title(GTK_WINDOW(dialog), "OpenSSH");
113 gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
114 gtk_window_set_keep_above(GTK_WINDOW(dialog), TRUE);
115 gtk_label_set_line_wrap(GTK_LABEL((GTK_MESSAGE_DIALOG(dialog))->label),
118 /* Make <enter> close dialog */
119 gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
121 G_CALLBACK(ok_dialog), dialog);
123 gtk_window_set_keep_above(GTK_WINDOW(dialog), TRUE);
126 gtk_widget_show_now(dialog);
130 (GTK_WIDGET(dialog))->window, TRUE, 0, NULL,
142 status = gdk_keyboard_grab((GTK_WIDGET(dialog))->window,
156 result = gtk_dialog_run(GTK_DIALOG(dialog));
186 gtk_widget_destroy(dialog);
197 gtk_widget_destroy(dialog);