]> Pileus Git - ~andy/gtk/blobdiff - gtk/tests/action.c
Don't unref floating menuitems
[~andy/gtk] / 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);