[gtk+/gtk-2-90: 116/146] Fix GtkAboutDialog to use gtk_widget_set_can_default() instead of GTK_WIDGET_SET_FLAGS()



commit 86a72d263158ae71a82758b7cf860405e59735d6
Author: Cody Russell <bratsche gnome org>
Date:   Thu Oct 22 15:06:00 2009 -0500

    Fix GtkAboutDialog to use gtk_widget_set_can_default() instead of GTK_WIDGET_SET_FLAGS()

 gtk/gtkaboutdialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 121fd8a..4af0f03 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -626,7 +626,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);
+  gtk_widget_set_can_default (button, TRUE);
   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);
@@ -640,7 +640,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_can_default (button, TRUE);
   gtk_widget_set_no_show_all (button, TRUE);
   gtk_box_pack_end (GTK_BOX (action_area), 
 		    button, FALSE, TRUE, 0); 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]