aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-17 16:26:16 -0500
committerTed Gould <ted@gould.cx>2010-03-17 16:26:16 -0500
commit3564afb27f1ace2d516507a1b3132bc7eb815b32 (patch)
tree30eaa173fc18768a382d6a48f5669062612b6550
parent23b8dc273347c6782667869e3de8f1dff059937d (diff)
downloadayatana-indicator-session-3564afb27f1ace2d516507a1b3132bc7eb815b32.tar.gz
ayatana-indicator-session-3564afb27f1ace2d516507a1b3132bc7eb815b32.tar.bz2
ayatana-indicator-session-3564afb27f1ace2d516507a1b3132bc7eb815b32.zip
Setting the user icon
-rw-r--r--src/session-service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c
index fb20f3b..97ed013 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -590,6 +590,11 @@ rebuild_items (DbusmenuMenuitem *root,
dbusmenu_menuitem_property_set (mi, USER_ITEM_PROP_NAME, user->real_name);
}
dbusmenu_menuitem_property_set_bool (mi, USER_ITEM_PROP_LOGGED_IN, user->sessions != NULL);
+ if (user->icon_url != NULL && user->icon_url[0] != '\0') {
+ dbusmenu_menuitem_property_set(mi, USER_ITEM_PROP_ICON, user->icon_url);
+ } else {
+ dbusmenu_menuitem_property_set(mi, USER_ITEM_PROP_ICON, USER_ITEM_ICON_DEFAULT);
+ }
dbusmenu_menuitem_child_append (root, mi);
g_signal_connect (G_OBJECT (mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK (activate_user_session), user);
}