menu: Huh?

What was that code supposed to achieve? Why are we unsetting flags that
might be useful?
This commit is contained in:
Benjamin Otte 2012-12-29 02:07:09 +01:00
parent cc986fdc1c
commit b068b18c78

View File

@ -1234,9 +1234,6 @@ 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_flags (GTK_WIDGET (menu)) != 0)
gtk_widget_set_state_flags (GTK_WIDGET (menu), 0, TRUE);
/* Attach the widget to the toplevel window. */
gtk_window_set_attached_to (GTK_WINDOW (menu->priv->toplevel), attach_widget);