From 45af879206b20e704c985a33f93e88f329842352 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 3 Jun 2012 15:53:46 -0500 Subject: simplify is_this_guest_session() --- src/user-menu-mgr.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/user-menu-mgr.c b/src/user-menu-mgr.c index 0070188..1f3755b 100644 --- a/src/user-menu-mgr.c +++ b/src/user-menu-mgr.c @@ -364,17 +364,13 @@ user_mgr_get_root_item (UserMenuMgr* self) return self->root_item; } -/* Checks to see if we should show the guest suession item */ +/* Checks to see if we should show the guest session item. + System users shouldn't have guest account shown. + Mostly this would be the case of the guest user itself. */ static gboolean is_this_guest_session (void) { - if (geteuid() < 500) { - /* System users shouldn't have guest account shown. Mostly - this would be the case of the guest user itself. */ - return TRUE; - } - - return FALSE; + return geteuid() < 500; } /* Called when someone clicks on the guest session item. */ -- cgit v1.2.3