forked from AuroraMiddleware/gtk
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:
parent
4244349600
commit
925ed7c70f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user