aboutsummaryrefslogtreecommitdiff
path: root/src/app-menu-item.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-31 22:02:37 -0500
committerTed Gould <ted@gould.cx>2010-03-31 22:02:37 -0500
commit9cb54c4aaf962d82db6af1225c2b854215c9ae0f (patch)
tree6ca2baecd4df463cef468368df652e0b0a08867b /src/app-menu-item.c
parente270510a962a72df7452230ca02ab477ac909800 (diff)
parent3dcc91b1d7d8f8c5cb9e713eeab8c7fcf2437e30 (diff)
downloadayatana-indicator-messages-9cb54c4aaf962d82db6af1225c2b854215c9ae0f.tar.gz
ayatana-indicator-messages-9cb54c4aaf962d82db6af1225c2b854215c9ae0f.tar.bz2
ayatana-indicator-messages-9cb54c4aaf962d82db6af1225c2b854215c9ae0f.zip
Fixes to the placement of notifications and their visibility. Lots of lovely cleanups.
Diffstat (limited to 'src/app-menu-item.c')
-rw-r--r--src/app-menu-item.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index 87423c0..ef30333 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -128,6 +128,8 @@ app_menu_item_init (AppMenuItem *self)
priv->root = NULL;
priv->shortcuts = NULL;
+ dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
+
return;
}
@@ -317,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);