aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2011-11-08 23:48:18 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2011-11-08 23:48:18 +0100
commit7e6cd986af1e0885ac5424a359a6c104ca004936 (patch)
tree8789dcb47eead1abcfc7d6f9fc76dfa99e3f3c1b /src
parentf2b3d4838b6a175458f903aeb8a8d04fe7a842a5 (diff)
downloadayatana-indicator-session-7e6cd986af1e0885ac5424a359a6c104ca004936.tar.gz
ayatana-indicator-session-7e6cd986af1e0885ac5424a359a6c104ca004936.tar.bz2
ayatana-indicator-session-7e6cd986af1e0885ac5424a359a6c104ca004936.zip
Export the indicators name hints
Using the PACKAGE config.h variable both for the users and devices entries.
Diffstat (limited to 'src')
-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){