]> Pileus Git - ~andy/gtk/commitdiff
Don't unref floating menuitems
authorMatthias Clasen <mclasen@redhat.com>
Mon, 29 Aug 2011 15:57:39 +0000 (11:57 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 29 Aug 2011 15:57:39 +0000 (11:57 -0400)
With recent fixes, GTK+ no longer sinks menu items automatically,
so we have to do it explicitly here.

gtk/tests/action.c

index dffb5b18febbaa28d8623a101e873219efb2d34b..6617d9521aeb727251a3a9d34fde9c1ae88a1fd7 100644 (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);