summaryrefslogtreecommitdiff
path: root/gtk/gtkaboutdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-08-15 18:58:57 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-08-15 18:58:57 +0000
commit76b4844e626fe45167084c2a6de94190a2de17d2 (patch)
treeafc05b4f212ba5a6304ffde3035d68461195c397 /gtk/gtkaboutdialog.c
parent83e9b9633794ed62ea590f8703d25dfae1e4fe49 (diff)
downloadgdk-pixbuf-76b4844e626fe45167084c2a6de94190a2de17d2.tar.gz
Set CAN_DEFAULT on all buttons. (#168737, fix proposed by Benjamin Berg)
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)
Diffstat (limited to 'gtk/gtkaboutdialog.c')
-rw-r--r--gtk/gtkaboutdialog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 23f5aa475..7eda3041e 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -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);