diff options
-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; }; |