From c79e4167d0fa73fc20b008ec428142bb00f44507 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Thu, 7 Jul 2011 11:42:24 +0100 Subject: icon now being shown on the panel for devices --- src/indicator-session.c | 10 ++++++---- 1 file 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))); -- cgit v1.2.3