aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-session.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-09-01 13:56:33 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-09-01 13:56:33 -0400
commita550558ec8990bc9619fe57f8be259a05e2379fc (patch)
tree3232670aeda51f4224c5ab22c0187e9e1775896e /src/indicator-session.c
parent8c0fce006824f4c1279c293bbd9e137ae23b68f0 (diff)
parentabcb5c20d4788aa28a831dae1c3cb16e8a68f5bd (diff)
downloadayatana-indicator-session-a550558ec8990bc9619fe57f8be259a05e2379fc.tar.gz
ayatana-indicator-session-a550558ec8990bc9619fe57f8be259a05e2379fc.tar.bz2
ayatana-indicator-session-a550558ec8990bc9619fe57f8be259a05e2379fc.zip
merged
Diffstat (limited to 'src/indicator-session.c')
-rw-r--r--src/indicator-session.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index fab47b3..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));
@@ -497,8 +506,7 @@ receive_signal (GDBusProxy * proxy,
&self->users);
}
}
- else if (g_strcmp0(signal_name, "RebootRequired") == 0) {
- // TODO waiting on design to give me a name.
+ else if (g_strcmp0(signal_name, "RestartRequired") == 0) {
self->devices.image = indicator_image_helper (ICON_RESTART);
}
}