aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-09-17 11:00:21 -0500
committerTed Gould <ted@gould.cx>2014-09-17 11:00:21 -0500
commit3b3e0d14f583c89f42ae69f372d8ac5be0691e96 (patch)
tree59b869fbe944fedd27f8bca1233d0362ef4a1500
parent20dc96cc27115c6b20740ee1044baf4521bb11b7 (diff)
downloadayatana-indicator-messages-3b3e0d14f583c89f42ae69f372d8ac5be0691e96.tar.gz
ayatana-indicator-messages-3b3e0d14f583c89f42ae69f372d8ac5be0691e96.tar.bz2
ayatana-indicator-messages-3b3e0d14f583c89f42ae69f372d8ac5be0691e96.zip
Simple, if we're on the greeter show it. If not, we don't
-rw-r--r--src/im-menu.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/im-menu.c b/src/im-menu.c
index 0f1e7ca..36773c9 100644
--- a/src/im-menu.c
+++ b/src/im-menu.c
@@ -246,5 +246,11 @@ im_menu_insert_item_sorted (ImMenu *menu,
gboolean
im_menu_show_data (ImMenu *menu)
{
- return TRUE;
+ g_return_val_if_fail (IM_IS_MENU (menu), FALSE);
+ ImMenuPrivate *priv = im_menu_get_instance_private (IM_MENU (menu));
+
+ if (!priv->on_greeter)
+ return TRUE;
+
+ return FALSE;
}