diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-08-19 18:10:09 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-08-19 18:10:09 +0100 |
commit | 733c32bb8d9619109ad47ab599c2f960cf19308b (patch) | |
tree | c44b7bdd9e5560ad736e24d6845d40b2e0bc3cdc /src/user-menu-mgr.c | |
parent | dea3599b2e7061a1ece931ac5afae57c8c28f125 (diff) | |
download | ayatana-indicator-session-733c32bb8d9619109ad47ab599c2f960cf19308b.tar.gz ayatana-indicator-session-733c32bb8d9619109ad47ab599c2f960cf19308b.tar.bz2 ayatana-indicator-session-733c32bb8d9619109ad47ab599c2f960cf19308b.zip |
users now dynamically responsive to addition and deletion of users
Diffstat (limited to 'src/user-menu-mgr.c')
-rw-r--r-- | src/user-menu-mgr.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/user-menu-mgr.c b/src/user-menu-mgr.c index 44c1960..e1796ce 100644 --- a/src/user-menu-mgr.c +++ b/src/user-menu-mgr.c @@ -76,7 +76,7 @@ user_menu_mgr_init (UserMenuMgr *self) G_CALLBACK (user_change), self); g_signal_connect (G_OBJECT (self->users_dbus_interface), - "user-removed", + "user-deleted", G_CALLBACK (user_change), self); } @@ -174,6 +174,9 @@ user_menu_mgr_rebuild_items (UserMenuMgr *self, gboolean greeter_mode) user_menu_is_visible = self->user_count > 1; } + g_debug ("USER COUNT FROM REBUILD PERSPECTIVE : %i", + self->user_count); + session_dbus_set_user_menu_visibility (self->session_dbus_interface, user_menu_is_visible); @@ -364,9 +367,10 @@ user_change (UsersServiceDbus *service, const gchar *user_id, gpointer user_data) { - //DbusmenuMenuitem *root = (DbusmenuMenuitem *)user_data; - // TODO sort this out. - //rebuild_user_items (root, service); + g_debug ("user change in the user menu mgr"); + g_return_if_fail (USER_IS_MENU_MGR (user_data)); + UserMenuMgr* user_mgr = USER_MENU_MGR(user_data); + user_menu_mgr_rebuild_items (user_mgr, FALSE); return; } |