diff options
author | Ted Gould <ted@canonical.com> | 2009-10-01 16:51:18 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-01 16:51:18 -0500 |
commit | 5234d6f550335d177038062a9b0c361fa3043a0c (patch) | |
tree | ff87e04972af01fe702fef43170beaeeb5b38698 | |
parent | d0e28d7c6e98d91fc14398ea863bb378eb9cc9c7 (diff) | |
download | libdbusmenu-5234d6f550335d177038062a9b0c361fa3043a0c.tar.gz libdbusmenu-5234d6f550335d177038062a9b0c361fa3043a0c.tar.bz2 libdbusmenu-5234d6f550335d177038062a9b0c361fa3043a0c.zip |
Reffing the GTK menu item
-rw-r--r-- | libdbusmenu-gtk/client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index 21da38e..18dcea8 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -201,6 +201,7 @@ dbusmenu_gtkclient_newitem_base (DbusmenuGtkClient * client, DbusmenuMenuitem * /* Attach these two */ g_object_set_data(G_OBJECT(item), data_menuitem, gmi); + g_object_ref(G_OBJECT(gmi)); /* DbusmenuMenuitem signals */ g_signal_connect(G_OBJECT(item), DBUSMENU_MENUITEM_SIGNAL_PROPERTY_CHANGED, G_CALLBACK(menu_prop_change_cb), gmi); |