aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2012-04-09 13:32:56 -0400
committerKen VanDine <ken.vandine@canonical.com>2012-04-09 13:32:56 -0400
commit0a37e3250ea049cbc6c509cd23f477e952897e8f (patch)
treedcbdf006d066ceda7a26ccdab0da997637b14891
parentcc39a2e538deda02a60e9e6752de774c8d6b96c0 (diff)
parentfcbbfff1269c3a923358c31587319239d183508a (diff)
downloadlibdbusmenu-0a37e3250ea049cbc6c509cd23f477e952897e8f.tar.gz
libdbusmenu-0a37e3250ea049cbc6c509cd23f477e952897e8f.tar.bz2
libdbusmenu-0a37e3250ea049cbc6c509cd23f477e952897e8f.zip
* libdbusmenu-glib/server.c
- Cherry picked a fix for a regression in about-to-show grouping
-rw-r--r--debian/changelog7
-rw-r--r--libdbusmenu-glib/server.c8
2 files changed, 12 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index 7dfc3d4..a322f0a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+libdbusmenu (0.5.99-0ubuntu2) UNRELEASED; urgency=low
+
+ * libdbusmenu-glib/server.c
+ - Cherry picked a fix for a regression in about-to-show grouping
+
+ -- Ken VanDine <ken.vandine@canonical.com> Mon, 09 Apr 2012 12:29:12 -0400
+
libdbusmenu (0.5.99-0ubuntu1) precise; urgency=low
* New upstream release.
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index 091b243..ebe0082 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -1831,12 +1831,13 @@ bus_about_to_show_group (DbusmenuServer * server, GVariant * params, GDBusMethod
gint32 id;
GVariantIter iter;
GVariantBuilder builder;
-
- g_variant_iter_init(&iter, params);
+
+ GVariant * items = g_variant_get_child_value(params, 0);
+ g_variant_iter_init(&iter, items);
g_variant_builder_init(&builder, G_VARIANT_TYPE("ai"));
gboolean gotone = FALSE;
- while (g_variant_iter_loop(&iter, "(i)", &id)) {
+ while (g_variant_iter_loop(&iter, "i", &id)) {
DbusmenuMenuitem * mi = lookup_menuitem_by_id(server, id);
if (mi != NULL) {
g_timeout_add(0, bus_about_to_show_idle, g_object_ref(mi));
@@ -1872,6 +1873,7 @@ bus_about_to_show_group (DbusmenuServer * server, GVariant * params, GDBusMethod
}
g_variant_unref(errors);
+ g_variant_unref(items);
return;
}