aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-05-25 23:21:28 +0200
committerTed Gould <ted@canonical.com>2009-05-25 23:21:28 +0200
commit1891e81fa2c10654d2e0707f48d510ab8543675b (patch)
tree5a82c9e08108537e51c9979ac20f68f66a028e1e /libdbusmenu-gtk
parent59e8bba4ca5c9164fcbc886af94e6e2c627d523e (diff)
downloadlibdbusmenu-1891e81fa2c10654d2e0707f48d510ab8543675b.tar.gz
libdbusmenu-1891e81fa2c10654d2e0707f48d510ab8543675b.tar.bz2
libdbusmenu-1891e81fa2c10654d2e0707f48d510ab8543675b.zip
Switching so that we're destroying the widget instead of object unref'ing the widget.
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r--libdbusmenu-gtk/menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbusmenu-gtk/menu.c b/libdbusmenu-gtk/menu.c
index 9ad1bcf..aa8dc10 100644
--- a/libdbusmenu-gtk/menu.c
+++ b/libdbusmenu-gtk/menu.c
@@ -180,14 +180,14 @@ static void
destoryed_dbusmenuitem_cb (gpointer udata, GObject * dbusmenuitem)
{
g_debug("DbusmenuMenuitem was destroyed");
- g_object_unref(G_OBJECT(udata));
+ gtk_widget_destroy(GTK_WIDGET(udata));
return;
}
static void
connect_menuitem (DbusmenuMenuitem * mi, GtkMenuItem * gmi)
{
- g_object_set_data_full(G_OBJECT(mi), data_menuitem, gmi, g_object_unref);
+ g_object_set_data(G_OBJECT(mi), data_menuitem, gmi);
g_signal_connect(G_OBJECT(mi), DBUSMENU_MENUITEM_SIGNAL_PROPERTY_CHANGED, G_CALLBACK(menu_prop_change_cb), gmi);
g_signal_connect(G_OBJECT(gmi), "activate", G_CALLBACK(menu_pressed_cb), mi);