aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-16 21:46:42 -0500
committerTed Gould <ted@gould.cx>2010-03-16 21:46:42 -0500
commit41fb4503ec3443835be5176733158cf5bcf372d9 (patch)
tree2bd28d8ff76386982de86b9f1016356c102a9d33
parent5a06c7033c279c5421894ed99d01adb449568521 (diff)
downloadayatana-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.
-rw-r--r--src/users-service-dbus.c1
-rw-r--r--src/users-service-dbus.h4
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;
};