aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-07-07 11:42:24 +0100
committerConor Curran <conor.curran@canonical.com>2011-07-07 11:42:24 +0100
commitc79e4167d0fa73fc20b008ec428142bb00f44507 (patch)
treee7cc01560da03d0c1bf5a6b235010bdcb6e42eca
parentd0532a06fb80e286901e984f7097a35641f037c2 (diff)
downloadayatana-indicator-session-c79e4167d0fa73fc20b008ec428142bb00f44507.tar.gz
ayatana-indicator-session-c79e4167d0fa73fc20b008ec428142bb00f44507.tar.bz2
ayatana-indicator-session-c79e4167d0fa73fc20b008ec428142bb00f44507.zip
icon now being shown on the panel for devices
-rw-r--r--src/indicator-session.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 5c582b4..0bb782d 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -133,20 +133,22 @@ indicator_session_init (IndicatorSession *self)
// users
self->users.menu = GTK_MENU (dbusmenu_gtkmenu_new (INDICATOR_USERS_DBUS_NAME,
INDICATOR_USERS_DBUS_OBJECT));
- self->users.label = GTK_LABEL (gtk_label_new ("Users"));
+ self->users.image = indicator_image_helper (USER_ITEM_ICON_DEFAULT);
// devices
self->devices.menu = GTK_MENU (dbusmenu_gtkmenu_new(INDICATOR_SESSION_DBUS_NAME,
INDICATOR_SESSION_DBUS_OBJECT));
- self->devices.label = GTK_LABEL (gtk_label_new ("Devices"));
+ self->devices.image = indicator_image_helper (ICON_DEFAULT);
gtk_widget_show (GTK_WIDGET(self->devices.menu));
- gtk_widget_show (GTK_WIDGET(self->devices.label));
- gtk_widget_show (GTK_WIDGET(self->users.label));
+ gtk_widget_show (GTK_WIDGET(self->devices.image));
+ gtk_widget_show (GTK_WIDGET(self->users.image));
gtk_widget_show (GTK_WIDGET(self->users.menu));
g_object_ref (self->users.menu);
+ g_object_ref (self->users.image);
g_object_ref (self->devices.menu);
+ g_object_ref (self->devices.image);
// Setup the handlers for users
DbusmenuClient * users_client = DBUSMENU_CLIENT(dbusmenu_gtkmenu_get_client(DBUSMENU_GTKMENU(self->users.menu)));