GtkMenu: Set widget state as state flags.

This commit is contained in:
Carlos Garnacho 2010-10-31 14:43:55 +01:00
parent 399499225e
commit 9ae2e29f44

View File

@ -1192,9 +1192,9 @@ gtk_menu_attach_to_widget (GtkMenu *menu,
g_object_set_data_full (G_OBJECT (attach_widget), I_(ATTACHED_MENUS), list,
(GDestroyNotify) g_list_free);
if (gtk_widget_get_state (GTK_WIDGET (menu)) != GTK_STATE_NORMAL)
gtk_widget_set_state (GTK_WIDGET (menu), GTK_STATE_NORMAL);
if (gtk_widget_get_state_flags (GTK_WIDGET (menu)) != 0)
gtk_widget_set_state_flags (GTK_WIDGET (menu), 0, TRUE);
/* we don't need to set the style here, since
* we are a toplevel widget.
*/