[gnome-panel] status-notifier: always request full layout
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] status-notifier: always request full layout
- Date: Sat, 5 Nov 2016 17:10:34 +0000 (UTC)
commit c02ade2aec1e6b38cb36e5c4fa0fdeb0f48c1e71
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Nov 5 17:21:31 2016 +0200
status-notifier: always request full layout
applets/status-notifier/sn-dbus-menu.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/applets/status-notifier/sn-dbus-menu.c b/applets/status-notifier/sn-dbus-menu.c
index 39fc63a..aa3d7e7 100644
--- a/applets/status-notifier/sn-dbus-menu.c
+++ b/applets/status-notifier/sn-dbus-menu.c
@@ -175,6 +175,7 @@ get_layout_cb (GObject *source_object,
return;
}
+ g_hash_table_remove_all (menu->items);
layout_parse (menu, layout, GTK_MENU (menu));
g_variant_unref (layout);
}
@@ -185,6 +186,7 @@ update_layout (SnDBusMenu *menu,
{
gint depth;
+ parent = 0;
depth = -1;
sn_dbus_menu_gen_call_get_layout (menu->proxy, parent, depth,
@@ -260,7 +262,6 @@ map_cb (GtkWidget *widget,
if (need_update)
{
- g_hash_table_remove_all (menu->items);
update_layout (menu, 0);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]