aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-09-17 16:29:08 -0500
committerTed Gould <ted@gould.cx>2014-09-17 16:29:08 -0500
commit86aab4376be3791e1170118805ed44103a5fc2fd (patch)
treec64b3b0d0d6c563b9d40d7f864ac60804d770f4a /src
parentc50d1189d4df8e7d23a0a226d9bc09e1b2306204 (diff)
downloadayatana-indicator-messages-86aab4376be3791e1170118805ed44103a5fc2fd.tar.gz
ayatana-indicator-messages-86aab4376be3791e1170118805ed44103a5fc2fd.tar.bz2
ayatana-indicator-messages-86aab4376be3791e1170118805ed44103a5fc2fd.zip
A function to handle the showing on greeter part of this.
Diffstat (limited to 'src')
-rw-r--r--src/im-accounts-service.c7
-rw-r--r--src/im-accounts-service.h1
-rw-r--r--src/im-menu.c2
3 files changed, 9 insertions, 1 deletions
diff --git a/src/im-accounts-service.c b/src/im-accounts-service.c
index f3b641f..1926d9b 100644
--- a/src/im-accounts-service.c
+++ b/src/im-accounts-service.c
@@ -98,3 +98,10 @@ im_accounts_service_set_draws_attention (ImAccountsService * service, gboolean d
}
+
+gboolean
+im_accounts_service_get_show_on_greeter (ImAccountsService * service)
+{
+
+ return FALSE;
+}
diff --git a/src/im-accounts-service.h b/src/im-accounts-service.h
index 263103b..d7611d8 100644
--- a/src/im-accounts-service.h
+++ b/src/im-accounts-service.h
@@ -46,6 +46,7 @@ struct _ImAccountsService {
GType im_accounts_service_get_type (void);
ImAccountsService * im_accounts_service_ref_default (void);
void im_accounts_service_set_draws_attention (ImAccountsService * service, gboolean draws_attention);
+gboolean im_accounts_service_get_show_on_greeter (ImAccountsService * service);
G_END_DECLS
diff --git a/src/im-menu.c b/src/im-menu.c
index bd45098..0c39b97 100644
--- a/src/im-menu.c
+++ b/src/im-menu.c
@@ -256,5 +256,5 @@ im_menu_show_data (ImMenu *menu)
if (!priv->on_greeter)
return TRUE;
- return FALSE;
+ return im_accounts_service_get_show_on_greeter(priv->as);
}