diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2010-02-05 11:49:40 -0800 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2010-02-05 11:49:40 -0800 |
commit | 67b12d9f2549670f528fd098c737d93761cd5d74 (patch) | |
tree | a66ec57b2843046bb248964c6b4d6e081f54ca77 /libdbusmenu-glib/server.c | |
parent | 730e7609ef6042130f945f8ac43a8220171fee37 (diff) | |
parent | e8ac2fcb6cd946e90e873970976f6ae64354947c (diff) | |
download | libdbusmenu-67b12d9f2549670f528fd098c737d93761cd5d74.tar.gz libdbusmenu-67b12d9f2549670f528fd098c737d93761cd5d74.tar.bz2 libdbusmenu-67b12d9f2549670f528fd098c737d93761cd5d74.zip |
releasing version 0.2.3-0ubuntu1
Diffstat (limited to 'libdbusmenu-glib/server.c')
-rw-r--r-- | libdbusmenu-glib/server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index 7d8e5c3..f8267c2 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -237,12 +237,14 @@ set_property (GObject * obj, guint id, const GValue * value, GParamSpec * pspec) case PROP_ROOT_NODE: if (priv->root != NULL) { dbusmenu_menuitem_foreach(priv->root, menuitem_signals_remove, obj); + dbusmenu_menuitem_set_root(priv->root, FALSE); g_object_unref(G_OBJECT(priv->root)); priv->root = NULL; } priv->root = DBUSMENU_MENUITEM(g_value_get_object(value)); if (priv->root != NULL) { g_object_ref(G_OBJECT(priv->root)); + dbusmenu_menuitem_set_root(priv->root, TRUE); dbusmenu_menuitem_foreach(priv->root, menuitem_signals_create, obj); } else { g_debug("Setting root node to NULL"); @@ -516,7 +518,7 @@ static gboolean _dbusmenu_server_get_children (DbusmenuServer * server, gint id, GPtrArray * properties, GPtrArray ** output, GError ** error) { DbusmenuServerPrivate * priv = DBUSMENU_SERVER_GET_PRIVATE(server); - DbusmenuMenuitem * mi = id == 0 ? priv->root : dbusmenu_menuitem_find_id(priv->root, id); + DbusmenuMenuitem * mi = dbusmenu_menuitem_find_id(priv->root, id); if (mi == NULL) { if (error != NULL) { |