diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-09-15 20:29:26 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-09-15 20:29:26 +0800 |
commit | 21486c64cffce440f471de2c23156757edff97ec (patch) | |
tree | b4237749a9d28e03b356bd0e6f96120be8ec4b02 | |
parent | e00c32de2c601e1038ccb0473ac2373c87112ba8 (diff) | |
download | gsoc2013-epiphany-21486c64cffce440f471de2c23156757edff97ec.tar gsoc2013-epiphany-21486c64cffce440f471de2c23156757edff97ec.tar.gz gsoc2013-epiphany-21486c64cffce440f471de2c23156757edff97ec.tar.bz2 gsoc2013-epiphany-21486c64cffce440f471de2c23156757edff97ec.tar.lz gsoc2013-epiphany-21486c64cffce440f471de2c23156757edff97ec.tar.xz gsoc2013-epiphany-21486c64cffce440f471de2c23156757edff97ec.tar.zst gsoc2013-epiphany-21486c64cffce440f471de2c23156757edff97ec.zip |
Don't focus the checkbox initially. Fixes bug #163371.
2005-09-15 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/GtkNSSDialog.cpp:
Don't focus the checkbox initially. Fixes bug #163371.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/GtkNSSDialogs.cpp | 14 |
2 files changed, 16 insertions, 4 deletions
@@ -1,5 +1,11 @@ 2005-09-15 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/GtkNSSDialog.cpp: + + Don't focus the checkbox initially. Fixes bug #163371. + +2005-09-15 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-toolbar-editor.c: (ephy_toolbar_editor_construct): Make Close the default button. diff --git a/embed/mozilla/GtkNSSDialogs.cpp b/embed/mozilla/GtkNSSDialogs.cpp index b8a47a402..44b6897e2 100644 --- a/embed/mozilla/GtkNSSDialogs.cpp +++ b/embed/mozilla/GtkNSSDialogs.cpp @@ -204,9 +204,12 @@ display_cert_warning_box (nsIInterfaceRequestor *ctx, gboolean *checkbox_value, const char *affirmative_text) { - GtkWidget *dialog, *label, *checkbox, *vbox; + GtkWidget *dialog, *label, *checkbox, *vbox, *button; int res; + /* NOTE: Due to a mozilla bug [https://bugzilla.mozilla.org/show_bug.cgi?id=306288], + * we will always end up without a parent! + */ nsCOMPtr<nsIDOMWindow> parent = do_GetInterface (ctx); GtkWindow *gparent = GTK_WINDOW (EphyUtils::FindGtkParent (parent)); @@ -240,9 +243,9 @@ display_cert_warning_box (nsIInterfaceRequestor *ctx, affirmative_text = _("_Accept"); } - gtk_dialog_add_button (GTK_DIALOG (dialog), - affirmative_text, - GTK_RESPONSE_ACCEPT); + button = gtk_dialog_add_button (GTK_DIALOG (dialog), + affirmative_text, + GTK_RESPONSE_ACCEPT); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); if (checkbox_text) @@ -258,6 +261,9 @@ display_cert_warning_box (nsIInterfaceRequestor *ctx, checkbox = 0; } + /* We don't want focus on the checkbox */ + gtk_widget_grab_focus (button); + gtk_label_set_markup (GTK_LABEL (label), markup_text); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); gtk_widget_show_all (dialog); |