diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-06-03 14:20:57 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-06-03 14:20:57 -0500 |
commit | dfda99035410a5de6d8ca33da203a3b128c44b25 (patch) | |
tree | 12cc98153aed878f639761cbc69b778334a569d0 /src | |
parent | ca4dc435ab0c1af2b5fc72e9b6eb0c286630ddd4 (diff) | |
download | ayatana-indicator-session-dfda99035410a5de6d8ca33da203a3b128c44b25.tar.gz ayatana-indicator-session-dfda99035410a5de6d8ca33da203a3b128c44b25.tar.bz2 ayatana-indicator-session-dfda99035410a5de6d8ca33da203a3b128c44b25.zip |
Remove unused function check_new_session() from user-menu-mgr.c
Diffstat (limited to 'src')
-rw-r--r-- | src/user-menu-mgr.c | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/src/user-menu-mgr.c b/src/user-menu-mgr.c index b7f61cf..fd9f3bd 100644 --- a/src/user-menu-mgr.c +++ b/src/user-menu-mgr.c @@ -53,7 +53,6 @@ static void activate_user_accounts (DbusmenuMenuitem *mi, gpointer user_data); static void user_menu_mgr_rebuild_items (UserMenuMgr *self, gboolean greeter_mode); -static gboolean check_new_session (); static void user_change (UsersServiceDbus *service, const gchar *user_id, gpointer user_data); @@ -143,20 +142,18 @@ user_menu_mgr_rebuild_items (UserMenuMgr *self, gboolean greeter_mode) // TODO we should really return here if the menu is not going to be shown. - if (check_new_session ()){ - switch_menuitem = dbusmenu_menuitem_new (); - dbusmenu_menuitem_property_set (switch_menuitem, - DBUSMENU_MENUITEM_PROP_TYPE, - MENU_SWITCH_TYPE); - dbusmenu_menuitem_property_set (switch_menuitem, - MENU_SWITCH_USER, - g_get_user_name()); - dbusmenu_menuitem_child_append (self->root_item, switch_menuitem); - g_signal_connect (G_OBJECT (switch_menuitem), - DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, - G_CALLBACK (activate_new_session), - self->users_dbus_interface); - } + switch_menuitem = dbusmenu_menuitem_new (); + dbusmenu_menuitem_property_set (switch_menuitem, + DBUSMENU_MENUITEM_PROP_TYPE, + MENU_SWITCH_TYPE); + dbusmenu_menuitem_property_set (switch_menuitem, + MENU_SWITCH_USER, + g_get_user_name()); + dbusmenu_menuitem_child_append (self->root_item, switch_menuitem); + g_signal_connect (G_OBJECT (switch_menuitem), + DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, + G_CALLBACK (activate_new_session), + self->users_dbus_interface); if ( !is_this_guest_session () && guest_enabled) { @@ -276,14 +273,6 @@ user_menu_mgr_rebuild_items (UserMenuMgr *self, gboolean greeter_mode) } -/* Checks to see if we can create sessions */ -// TODO what is this ? -static gboolean -check_new_session () -{ - return TRUE; -} - /* Check to see if the lockdown key is protecting from locking the screen. If not, lock it. */ static void |