Home | History | Annotate | Download | only in gtk

Lines Matching refs:dialog

21 // after dialog creation.
25 // If there's a text entry in the dialog, get the text from the first one and
27 std::wstring GetPromptText(GtkDialog* dialog) {
29 g_object_get_data(G_OBJECT(dialog), kPromptTextId));
35 // If there's a toggle button in the dialog, return the toggled state.
37 bool ShouldSuppressJSDialogs(GtkDialog* dialog) {
39 g_object_get_data(G_OBJECT(dialog), kSuppressCheckboxId));
50 JSModalDialogGtk::JSModalDialogGtk(JavaScriptAppModalDialog* dialog,
52 : dialog_(dialog) {
189 void JSModalDialogGtk::OnResponse(GtkWidget* dialog, int response_id) {
194 dialog_->OnAccept(GetPromptText(GTK_DIALOG(dialog)),
195 ShouldSuppressJSDialogs(GTK_DIALOG(dialog)));
199 case GTK_RESPONSE_DELETE_EVENT: // User hit the X on the dialog.
200 dialog_->OnCancel(ShouldSuppressJSDialogs(GTK_DIALOG(dialog)));
206 gtk_widget_destroy(dialog);
208 // Now that the dialog is gone, we can put all the windows into separate
219 JavaScriptAppModalDialog* dialog,
221 return new JSModalDialogGtk(dialog, parent_window);