aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-11-29 16:13:20 -0600
committerTed Gould <ted@gould.cx>2011-11-29 16:13:20 -0600
commitdba878e3338b85c6c3e121b738448f687941e03e (patch)
tree8789dcb47eead1abcfc7d6f9fc76dfa99e3f3c1b
parentf2b3d4838b6a175458f903aeb8a8d04fe7a842a5 (diff)
parent7e6cd986af1e0885ac5424a359a6c104ca004936 (diff)
downloadayatana-indicator-session-dba878e3338b85c6c3e121b738448f687941e03e.tar.gz
ayatana-indicator-session-dba878e3338b85c6c3e121b738448f687941e03e.tar.bz2
ayatana-indicator-session-dba878e3338b85c6c3e121b738448f687941e03e.zip
Add name hints to the indicators
-rw-r--r--src/indicator-session.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 9510807..ec49f0e 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -118,8 +118,8 @@ indicator_session_class_init (IndicatorSessionClass *klass)
object_class->finalize = indicator_session_finalize;
IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);
- io_class->get_entries = indicator_session_get_entries;
- io_class->get_location = indicator_session_get_location;
+ io_class->get_entries = indicator_session_get_entries;
+ io_class->get_location = indicator_session_get_location;
return;
}
@@ -140,6 +140,7 @@ indicator_session_init (IndicatorSession *self)
GtkWidget* avatar_icon = NULL;
// users
+ self->users.name_hint = PACKAGE"-users";
self->users.menu = GTK_MENU (dbusmenu_gtkmenu_new (INDICATOR_USERS_DBUS_NAME,
INDICATOR_USERS_DBUS_OBJECT));
// Set the image to the default avator image
@@ -169,7 +170,9 @@ indicator_session_init (IndicatorSession *self)
const gchar *greeter_var;
greeter_var = g_getenv("INDICATOR_GREETER_MODE");
greeter_mode = g_strcmp0(greeter_var, "1") == 0;
+
// devices
+ self->devices.name_hint = PACKAGE"-devices";
self->devices.menu = GTK_MENU (dbusmenu_gtkmenu_new(INDICATOR_SESSION_DBUS_NAME,
INDICATOR_SESSION_DBUS_OBJECT));
if (greeter_mode){