diff options
| author | Ted Gould <ted@canonical.com> | 2009-09-21 15:01:40 -0500 |
|---|---|---|
| committer | Ted Gould <ted@canonical.com> | 2009-09-21 15:01:40 -0500 |
| commit | b8c1eb0bf8b17d703fa8fea3e2c68bac6a7fee61 (patch) | |
| tree | bfd15dd614c8923882af770d067904554f01fa52 /libdbusmenu-glib/server.c | |
| parent | 363f7fa805de63ee1a8e0bfca05ce56bcf475489 (diff) | |
| download | libdbusmenu-b8c1eb0bf8b17d703fa8fea3e2c68bac6a7fee61.tar.gz libdbusmenu-b8c1eb0bf8b17d703fa8fea3e2c68bac6a7fee61.tar.bz2 libdbusmenu-b8c1eb0bf8b17d703fa8fea3e2c68bac6a7fee61.zip | |
Putting the revision number into the XML sent across the bus.
Diffstat (limited to 'libdbusmenu-glib/server.c')
| -rw-r--r-- | libdbusmenu-glib/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index af7bbef..1ac1da6 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -280,9 +280,9 @@ get_property (GObject * obj, guint id, GValue * value, GParamSpec * pspec) GPtrArray * xmlarray = g_ptr_array_new(); if (priv->root == NULL) { /* g_debug("Getting layout without root node!"); */ - g_ptr_array_add(xmlarray, g_strdup("<menu />")); + g_ptr_array_add(xmlarray, g_strdup_printf("<menu revision=\"%d\" />", priv->layout_revision)); } else { - dbusmenu_menuitem_buildxml(priv->root, xmlarray); + dbusmenu_menuitem_buildxml(priv->root, xmlarray, priv->layout_revision); } g_ptr_array_add(xmlarray, NULL); |
