diff options
author | Ted Gould <ted@gould.cx> | 2011-02-14 14:46:36 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-14 14:46:36 -0600 |
commit | 5da30c365a2196d488f9ea97f3455eefa3c3b058 (patch) | |
tree | 6627c377e4a62ecaca0dbe1943f7d03f4a1417ff /libdbusmenu-glib/server.c | |
parent | 8600ea3459e8307da36e6da90640ff49226e90ac (diff) | |
download | libdbusmenu-5da30c365a2196d488f9ea97f3455eefa3c3b058.tar.gz libdbusmenu-5da30c365a2196d488f9ea97f3455eefa3c3b058.tar.bz2 libdbusmenu-5da30c365a2196d488f9ea97f3455eefa3c3b058.zip |
Use the recurse parameter
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 3e71f07..26e324e 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -938,7 +938,7 @@ bus_get_layout (DbusmenuServer * server, GVariant * params, GDBusMethodInvocatio /* Input */ gint parent = g_variant_get_int32(g_variant_get_child_value(params, 0)); - //gint recurse = g_variant_get_int32(g_variant_get_child_value(params, 1)); + gint recurse = g_variant_get_int32(g_variant_get_child_value(params, 1)); const gchar ** props = g_variant_get_strv(g_variant_get_child_value(params, 2), NULL); /* Output */ @@ -946,7 +946,7 @@ bus_get_layout (DbusmenuServer * server, GVariant * params, GDBusMethodInvocatio GVariant * items = NULL; if (priv->root != NULL) { - items = dbusmenu_menuitem_build_variant(priv->root, props); + items = dbusmenu_menuitem_build_variant(priv->root, props, recurse); } /* What happens if we don't have anything? */ |