aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-session.c
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2012-10-24 09:45:50 +0000
committerTarmac <Unknown>2012-10-24 09:45:50 +0000
commit23518863d95772f0ed766a84130314ec10141112 (patch)
treef8e8f88f32f86c58e86fac5cd1ec37937b540cf4 /src/indicator-session.c
parent57b62d5fa18525811e1a4b413b1c6b966b5f28f8 (diff)
parent1d99dbe6b12edfa34008785968a041957c4eaee5 (diff)
downloadayatana-indicator-session-23518863d95772f0ed766a84130314ec10141112.tar.gz
ayatana-indicator-session-23518863d95772f0ed766a84130314ec10141112.tar.bz2
ayatana-indicator-session-23518863d95772f0ed766a84130314ec10141112.zip
The Design team wants the same icons in the greeter as in the user session (bug 1049244). This branch does that, and now that those greeter icons are not used anywhere, deletes them completely.. Fixes: https://bugs.launchpad.net/bugs/1049244. Approved by Charles Kerr.
Diffstat (limited to 'src/indicator-session.c')
-rw-r--r--src/indicator-session.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index c0db8d8..431292e 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -67,8 +67,6 @@ struct _IndicatorSession
GtkIconTheme * icon_theme;
};
-static gboolean greeter_mode;
-
GType indicator_session_get_type (void);
/* Indicator stuff */
@@ -126,8 +124,6 @@ indicator_session_init (IndicatorSession *self)
INDICATOR_SERVICE_MANAGER_SIGNAL_CONNECTION_CHANGE,
G_CALLBACK(service_connection_cb), self);
- greeter_mode = !g_strcmp0(g_getenv("INDICATOR_GREETER_MODE"), "1");
-
self->entry.name_hint = PACKAGE;
self->entry.label = GTK_LABEL (gtk_label_new ("User Name"));
self->entry.image = GTK_IMAGE (gtk_image_new());
@@ -405,22 +401,12 @@ indicator_session_update_icon_from_disposition (IndicatorSession * indicator,
{
const gchar * icon;
- if (greeter_mode)
- {
- if (disposition == DISPOSITION_NORMAL)
- icon = GREETER_ICON_DEFAULT;
- else
- icon = GREETER_ICON_RESTART;
- }
+ if (disposition == DISPOSITION_NORMAL)
+ icon = ICON_DEFAULT;
+ else if (disposition == DISPOSITION_INFO)
+ icon = ICON_INFO;
else
- {
- if (disposition == DISPOSITION_NORMAL)
- icon = ICON_DEFAULT;
- else if (disposition == DISPOSITION_INFO)
- icon = ICON_INFO;
- else
- icon = ICON_ALERT;
- }
+ icon = ICON_ALERT;
if (gtk_icon_theme_has_icon (indicator->icon_theme, icon) == FALSE)
icon = "gtk-missing-image";