aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-09-06 16:01:58 +0100
committerConor Curran <conor.curran@canonical.com>2011-09-06 16:01:58 +0100
commit12f76de565f5af5d9d946d4ebc43b195c34bbea2 (patch)
tree4a8f4a8f9dc525d919f854d23d0df4693a544cdd /src
parentf177b1e0b8ab0413a6eced41de3710e38852319a (diff)
downloadayatana-indicator-session-12f76de565f5af5d9d946d4ebc43b195c34bbea2.tar.gz
ayatana-indicator-session-12f76de565f5af5d9d946d4ebc43b195c34bbea2.tar.bz2
ayatana-indicator-session-12f76de565f5af5d9d946d4ebc43b195c34bbea2.zip
added new field to gsettings to allow to hide the user menu
Diffstat (limited to 'src')
-rw-r--r--src/user-menu-mgr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/user-menu-mgr.c b/src/user-menu-mgr.c
index a4308dd..98f6c8a 100644
--- a/src/user-menu-mgr.c
+++ b/src/user-menu-mgr.c
@@ -64,7 +64,7 @@ static void user_change (UsersServiceDbus *service,
gpointer user_data);
static void ensure_settings_client ();
-static gboolean check_guest_session (void);
+static gboolean is_this_guest_session (void);
static void activate_guest_session (DbusmenuMenuitem * mi,
guint timestamp,
gpointer user_data);
@@ -148,7 +148,7 @@ user_menu_mgr_rebuild_items (UserMenuMgr *self, gboolean greeter_mode)
self->users_dbus_interface);
}
- if (check_guest_session ())
+ if (is_this_guest_session ())
{
guest_mi = dbusmenu_menuitem_new ();
dbusmenu_menuitem_property_set (guest_mi,
@@ -415,7 +415,7 @@ user_mgr_get_root_item (UserMenuMgr* self)
/* Checks to see if we should show the guest suession item */
static gboolean
-check_guest_session (void)
+is_this_guest_session (void)
{
if (geteuid() < 500) {
/* System users shouldn't have guest account shown. Mostly