Don't unref floating menuitems

With recent fixes, GTK+ no longer sinks menu items automatically,
so we have to do it explicitly here.
This commit is contained in:
Matthias Clasen 2011-08-29 11:57:39 -04:00
parent 4244349600
commit 925ed7c70f

View File

@ -57,6 +57,7 @@ menu_item_label_notify_count (ActionTest *fixture,
GtkWidget *item = gtk_menu_item_new ();
unsigned int emmisions = 0;
g_object_ref_sink (item);
g_signal_connect (item, "notify::label",
G_CALLBACK (notify_count_emmisions), &emmisions);