]> Pileus Git - ~andy/gtk/commitdiff
Set CAN_DEFAULT on all buttons. (#168737, fix proposed by Benjamin Berg)
authorMatthias Clasen <mclasen@redhat.com>
Tue, 15 Aug 2006 18:58:57 +0000 (18:58 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 15 Aug 2006 18:58:57 +0000 (18:58 +0000)
2006-08-15  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkaboutdialog.c (gtk_about_dialog_init): Set CAN_DEFAULT
on all buttons.  (#168737, fix proposed by Benjamin Berg)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkaboutdialog.c

index f647c58f94e65eb5878dab717a01fe87861dfaa7..1cd0fda482be0cf9d513efdae4ba04bb49ca19ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-08-15  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Set CAN_DEFAULT
+       on all buttons.  (#168737, fix proposed by Benjamin Berg)
+
        * gtk/gtkentryprivate.h: 
        * gtk/gtkentry.c (_gtk_entry_effective_inner_border): Export 
        privately. Adjust all callers.
index f647c58f94e65eb5878dab717a01fe87861dfaa7..1cd0fda482be0cf9d513efdae4ba04bb49ca19ef 100644 (file)
@@ -1,5 +1,8 @@
 2006-08-15  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Set CAN_DEFAULT
+       on all buttons.  (#168737, fix proposed by Benjamin Berg)
+
        * gtk/gtkentryprivate.h: 
        * gtk/gtkentry.c (_gtk_entry_effective_inner_border): Export 
        privately. Adjust all callers.
index 23f5aa47517422fdef290e3f087993a972476ee9..7eda3041e45a95b65eaded257a60c9568dcf4b7f 100644 (file)
@@ -501,6 +501,7 @@ gtk_about_dialog_init (GtkAboutDialog *about)
 
   /* Add the credits button */
   button = gtk_button_new_with_mnemonic (_("C_redits"));
+  GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
   image = gtk_image_new_from_stock (GTK_STOCK_ABOUT, GTK_ICON_SIZE_BUTTON);
   gtk_button_set_image (GTK_BUTTON (button), image);
   gtk_widget_set_no_show_all (button, TRUE);
@@ -513,6 +514,7 @@ gtk_about_dialog_init (GtkAboutDialog *about)
 
   /* Add the license button */
   button = gtk_button_new_from_stock (_("_License"));
+  GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
   gtk_widget_set_no_show_all (button, TRUE);
   gtk_box_pack_end (GTK_BOX (GTK_DIALOG (about)->action_area), 
                    button, FALSE, TRUE, 0);