diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-02-27 05:24:24 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-03-01 05:32:51 +0100 |
commit | a27d5a2c9eba7af5b056de32ff9b2b4dd1eb97e1 (patch) | |
tree | 56f207c8731b36bdad916070df80fe2cea151039 /gtk/gtkoptionmenu.c | |
parent | 4f78f70b15f861cca115f578b0f3f4ad3ad087e7 (diff) | |
download | gtk+-a27d5a2c9eba7af5b056de32ff9b2b4dd1eb97e1.tar.gz |
Deprecate widget flag: GTK_WIDGET_IS_SENSITIVE
Use gtk_widget_is_sensitive() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
Diffstat (limited to 'gtk/gtkoptionmenu.c')
-rw-r--r-- | gtk/gtkoptionmenu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkoptionmenu.c b/gtk/gtkoptionmenu.c index 74d05547fd..7af0c7cfc8 100644 --- a/gtk/gtkoptionmenu.c +++ b/gtk/gtkoptionmenu.c @@ -729,8 +729,8 @@ gtk_option_menu_item_state_changed_cb (GtkWidget *widget, { GtkWidget *child = GTK_BIN (option_menu)->child; - if (child && GTK_WIDGET_SENSITIVE (child) != GTK_WIDGET_IS_SENSITIVE (widget)) - gtk_widget_set_sensitive (child, GTK_WIDGET_IS_SENSITIVE (widget)); + if (child && GTK_WIDGET_SENSITIVE (child) != gtk_widget_is_sensitive (widget)) + gtk_widget_set_sensitive (child, gtk_widget_is_sensitive (widget)); } static void @@ -771,7 +771,7 @@ gtk_option_menu_update_contents (GtkOptionMenu *option_menu) child = GTK_BIN (option_menu->menu_item)->child; if (child) { - if (!GTK_WIDGET_IS_SENSITIVE (option_menu->menu_item)) + if (!gtk_widget_is_sensitive (option_menu->menu_item)) gtk_widget_set_sensitive (child, FALSE); gtk_widget_reparent (child, GTK_WIDGET (option_menu)); } @@ -1014,7 +1014,7 @@ gtk_option_menu_scroll_event (GtkWidget *widget, l = g_list_nth (GTK_MENU_SHELL (option_menu->menu)->children, index); item = GTK_MENU_ITEM (l->data); - if (GTK_WIDGET_VISIBLE (item) && GTK_WIDGET_IS_SENSITIVE (item)) + if (GTK_WIDGET_VISIBLE (item) && gtk_widget_is_sensitive (GTK_WIDGET (item))) { gtk_option_menu_set_history (option_menu, index); gtk_menu_item_activate (GTK_MENU_ITEM (item)); |