summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-08-29 11:57:39 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-08-29 11:57:39 -0400
commit925ed7c70fb86e06aadbb1c29134573d57294e10 (patch)
tree819807629249314d81f797f4da2f95d3d09c7e04
parent424434960020c8dd41e7c92d13ebb41eff84ff49 (diff)
downloadgtk+-925ed7c70fb86e06aadbb1c29134573d57294e10.tar.gz
Don't unref floating menuitems
With recent fixes, GTK+ no longer sinks menu items automatically, so we have to do it explicitly here.
-rw-r--r--gtk/tests/action.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/tests/action.c b/gtk/tests/action.c
index dffb5b18fe..6617d9521a 100644
--- a/gtk/tests/action.c
+++ b/gtk/tests/action.c
@@ -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);