diff options
author | Ted Gould <ted@gould.cx> | 2010-03-30 22:25:19 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-30 22:25:19 -0500 |
commit | 36901661f757e0980f5bfca0d01da53cfdf32da2 (patch) | |
tree | 826dfc1d45597f8acc69d6fd79febf9d65602f54 /src | |
parent | e82a10312f3996dcaa312fb3f4e813c13561e992 (diff) | |
download | ayatana-indicator-messages-36901661f757e0980f5bfca0d01da53cfdf32da2.tar.gz ayatana-indicator-messages-36901661f757e0980f5bfca0d01da53cfdf32da2.tar.bz2 ayatana-indicator-messages-36901661f757e0980f5bfca0d01da53cfdf32da2.zip |
Making application items default to invisible, and only become visible if they get a valid desktop file.
Diffstat (limited to 'src')
-rw-r--r-- | src/app-menu-item.c | 4 |
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); |