[gtk+] Don't unref floating menuitems
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't unref floating menuitems
- Date: Mon, 29 Aug 2011 15:58:49 +0000 (UTC)
commit 925ed7c70fb86e06aadbb1c29134573d57294e10
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Aug 29 11:57:39 2011 -0400
Don't unref floating menuitems
With recent fixes, GTK+ no longer sinks menu items automatically,
so we have to do it explicitly here.
gtk/tests/action.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/tests/action.c b/gtk/tests/action.c
index dffb5b1..6617d95 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]