diff options
author | Ted Gould <ted@gould.cx> | 2010-03-16 21:46:42 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-16 21:46:42 -0500 |
commit | 41fb4503ec3443835be5176733158cf5bcf372d9 (patch) | |
tree | 2bd28d8ff76386982de86b9f1016356c102a9d33 /src | |
parent | 5a06c7033c279c5421894ed99d01adb449568521 (diff) | |
download | ayatana-indicator-session-41fb4503ec3443835be5176733158cf5bcf372d9.tar.gz ayatana-indicator-session-41fb4503ec3443835be5176733158cf5bcf372d9.tar.bz2 ayatana-indicator-session-41fb4503ec3443835be5176733158cf5bcf372d9.zip |
Adding a menuitem property to the user data structure.
Diffstat (limited to 'src')
-rw-r--r-- | src/users-service-dbus.c | 1 | ||||
-rw-r--r-- | src/users-service-dbus.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/users-service-dbus.c b/src/users-service-dbus.c index 9e7af5d..d0b52a9 100644 --- a/src/users-service-dbus.c +++ b/src/users-service-dbus.c @@ -664,6 +664,7 @@ sync_users (UsersServiceDbus *self) user->login_count = g_value_get_int (g_value_array_get_nth (values, 4)); user->icon_url = g_strdup (g_value_get_string (g_value_array_get_nth (values, 5))); user->real_name_conflict = FALSE; + user->menuitem = NULL; g_hash_table_insert (priv->users, g_strdup (user->user_name), diff --git a/src/users-service-dbus.h b/src/users-service-dbus.h index 29f6690..15dd71b 100644 --- a/src/users-service-dbus.h +++ b/src/users-service-dbus.h @@ -22,6 +22,7 @@ #include <glib.h> #include <glib-object.h> +#include <libdbusmenu-glib/menuitem.h> G_BEGIN_DECLS @@ -47,7 +48,10 @@ struct _UserData GList *sessions; + /* Whether the real name here conflicts with another in the system */ gboolean real_name_conflict; + /* The menuitem representing this user if there is one. */ + DbusmenuMenuitem * menuitem; UsersServiceDbus *service; }; |