diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2010-04-15 11:06:32 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2010-04-15 11:06:32 +0200 |
commit | acdb4b0ed4e0f9a77bc8796e8968405d3d97b5fc (patch) | |
tree | 7c2fad49bfbbf9ca0475dbe39ccf2982354fc99b /libdbusmenu-glib/client.c | |
parent | db71b1f79b5e57abec29c91497e8b1b60f8f316b (diff) | |
parent | 209320abfce67eef832cfe30a8c24b9505cf9718 (diff) | |
download | libdbusmenu-acdb4b0ed4e0f9a77bc8796e8968405d3d97b5fc.tar.gz libdbusmenu-acdb4b0ed4e0f9a77bc8796e8968405d3d97b5fc.tar.bz2 libdbusmenu-acdb4b0ed4e0f9a77bc8796e8968405d3d97b5fc.zip |
releasing version 0.2.9-0ubuntu2
Diffstat (limited to 'libdbusmenu-glib/client.c')
-rw-r--r-- | libdbusmenu-glib/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index f5546a2..d61b1ae 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -35,6 +35,7 @@ License version 3 and version 2.1 along with this program. If not, see #include "client.h" #include "menuitem.h" +#include "menuitem-private.h" #include "client-menuitem.h" #include "dbusmenu-client.h" #include "server-marshal.h" @@ -645,7 +646,7 @@ menuitem_get_properties_new_cb (DBusGProxy * proxy, GHashTable * properties, GEr #ifdef MASSIVEDEBUGGING g_debug("Client has realized a menuitem: %d", dbusmenu_menuitem_get_id(propdata->item)); #endif - g_signal_emit(G_OBJECT(propdata->item), DBUSMENU_MENUITEM_SIGNAL_REALIZED_ID, 0, TRUE); + dbusmenu_menuitem_set_realized(propdata->item); if (!handled) { g_signal_emit(G_OBJECT(propdata->client), signals[NEW_MENUITEM], 0, propdata->item, TRUE); @@ -748,6 +749,7 @@ parse_layout_xml(DbusmenuClient * client, xmlNodePtr node, DbusmenuMenuitem * it if (parent != NULL) { dbusmenu_menuitem_child_delete(parent, item); } + /* XXX: Should this be an unref? Who's reffing this that it exists without a parent? */ g_object_unref(G_OBJECT(item)); item = NULL; } @@ -773,6 +775,7 @@ parse_layout_xml(DbusmenuClient * client, xmlNodePtr node, DbusmenuMenuitem * it } } else { /* Refresh the properties */ + /* XXX: We shouldn't need to get the properties everytime we reuse an entry */ gchar * properties[1] = {NULL}; /* This gets them all */ org_ayatana_dbusmenu_get_properties_async(proxy, id, (const gchar **)properties, menuitem_get_properties_replace_cb, item); } |