diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-03-02 07:58:05 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-03-02 07:58:05 +0100 |
commit | e8e95d4c5ee4c7c78971597c53f0b6e3f0e81b7a (patch) | |
tree | e0af9394513f9dcb571e80f39456a1fda1c1533b /tests/testtext.c | |
parent | 483a5a9e1a55f01cbd20b7bbd301ee59efaa4c64 (diff) | |
download | gtk+-e8e95d4c5ee4c7c78971597c53f0b6e3f0e81b7a.tar.gz |
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_DEFAULT)
Use new API instead: gtk_widget_set_can_default ()
Diffstat (limited to 'tests/testtext.c')
-rw-r--r-- | tests/testtext.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testtext.c b/tests/testtext.c index 1224f75944..0bbd7899b1 100644 --- a/tests/testtext.c +++ b/tests/testtext.c @@ -285,7 +285,7 @@ msgbox_run (GtkWindow *parent, if (yes_button) { button = gtk_button_new_with_label (yes_button); - GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); + gtk_widget_set_can_default (button, TRUE); gtk_container_add (GTK_CONTAINER (button_box), button); if (default_index == 0) @@ -301,7 +301,7 @@ msgbox_run (GtkWindow *parent, if (no_button) { button = gtk_button_new_with_label (no_button); - GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); + gtk_widget_set_can_default (button, TRUE); gtk_container_add (GTK_CONTAINER (button_box), button); if (default_index == 0) @@ -316,7 +316,7 @@ msgbox_run (GtkWindow *parent, if (cancel_button) { button = gtk_button_new_with_label (cancel_button); - GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); + gtk_widget_set_can_default (button, TRUE); gtk_container_add (GTK_CONTAINER (button_box), button); if (default_index == 1) |