aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/app-menu-item.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index 03f4833..ef30333 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -128,7 +128,7 @@ app_menu_item_init (AppMenuItem *self)
priv->root = NULL;
priv->shortcuts = NULL;
- dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE);
+ dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
return;
}
@@ -319,6 +319,8 @@ desktop_cb (IndicateListener * listener, IndicateListenerServer * server, gchar
priv->desktop = g_strdup(value);
+ dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE);
+
update_label(self);
const gchar * def_icon = get_default_icon(priv->desktop);