diff options
author | Ted Gould <ted@gould.cx> | 2010-02-09 14:40:54 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-09 14:40:54 -0600 |
commit | 4222ceb8b29f0fd45e90a3e9260bfd44accebf23 (patch) | |
tree | 4b168b729bce6e44862370285392768cdbc1822a | |
parent | cd276bc30c0c05155868420b7afb0f4e3ce66a37 (diff) | |
download | libdbusmenu-4222ceb8b29f0fd45e90a3e9260bfd44accebf23.tar.gz libdbusmenu-4222ceb8b29f0fd45e90a3e9260bfd44accebf23.tar.bz2 libdbusmenu-4222ceb8b29f0fd45e90a3e9260bfd44accebf23.zip |
Reffing it and pulling it into the private struct.
-rw-r--r-- | libdbusmenu-glib/menuitem-proxy.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libdbusmenu-glib/menuitem-proxy.c b/libdbusmenu-glib/menuitem-proxy.c index d91ecfd..39315ae 100644 --- a/libdbusmenu-glib/menuitem-proxy.c +++ b/libdbusmenu-glib/menuitem-proxy.c @@ -167,6 +167,17 @@ handle_event (DbusmenuMenuitem * mi, const gchar * name, const GValue * value, g static void add_menuitem (DbusmenuMenuitemProxy * pmi, DbusmenuMenuitem * mi) { + /* Put it in private */ + DbusmenuMenuitemProxyPrivate * priv = DBUSMENU_MENUITEM_PROXY_GET_PRIVATE(pmi); + if (priv->mi != NULL) { + remove_menuitem(pmi); + } + priv->mi = mi; + g_object_ref(G_OBJECT(priv->mi)); + + /* Attach signals */ + + /* Go through children and wrap them */ return; } |