diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-09-01 18:23:35 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-09-01 18:23:35 +0100 |
commit | 383e28467156675a5c1231c37eafb2a7bbc6e4f2 (patch) | |
tree | 6e490c8e3d0ef6dbce815005270ad92f3a3efb1c /src/indicator-session.c | |
parent | 07a72b950fb099df379d241ad129d938c5d22990 (diff) | |
download | ayatana-indicator-session-383e28467156675a5c1231c37eafb2a7bbc6e4f2.tar.gz ayatana-indicator-session-383e28467156675a5c1231c37eafb2a7bbc6e4f2.tar.bz2 ayatana-indicator-session-383e28467156675a5c1231c37eafb2a7bbc6e4f2.zip |
much easier of handling the greeter icon
Diffstat (limited to 'src/indicator-session.c')
-rw-r--r-- | src/indicator-session.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c index aacef49..2b36fdd 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -164,10 +164,19 @@ indicator_session_init (IndicatorSession *self) self->users.label = GTK_LABEL (gtk_label_new (NULL)); + const gchar *greeter_var; + greeter_var = g_getenv("INDICATOR_GREETER_MODE"); + // devices self->devices.menu = GTK_MENU (dbusmenu_gtkmenu_new(INDICATOR_SESSION_DBUS_NAME, INDICATOR_SESSION_DBUS_OBJECT)); - self->devices.image = indicator_image_helper (ICON_DEFAULT); + if (g_strcmp0(greeter_var, "1") == 0){ + self->devices.image = indicator_image_helper (GREETER_ICON_DEFAULT); + } + else{ + self->devices.image = indicator_image_helper (ICON_DEFAULT); + } + gtk_widget_show (GTK_WIDGET(self->devices.menu)); gtk_widget_show (GTK_WIDGET(self->devices.image)); |