aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-15 15:36:48 -0500
committerTed Gould <ted@gould.cx>2010-03-15 15:36:48 -0500
commitc334ecccf05654c102b112cf7d76d2f38768924f (patch)
treefe2f26ce14471f62debd9bf184e770830e0c7baa
parent29bd57b57fe4cf4e964fdecf034cb2ecb8cd04b1 (diff)
downloadayatana-indicator-session-c334ecccf05654c102b112cf7d76d2f38768924f.tar.gz
ayatana-indicator-session-c334ecccf05654c102b112cf7d76d2f38768924f.tar.bz2
ayatana-indicator-session-c334ecccf05654c102b112cf7d76d2f38768924f.zip
Removing the lock separator as we don't need it anymore.
-rw-r--r--src/session-service.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 66d468f..cadce43 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -73,7 +73,6 @@ static UsersServiceDbus *dbus_interface = NULL;
static SessionDbus *session_dbus = NULL;
static DbusmenuMenuitem *lock_menuitem = NULL;
-static DbusmenuMenuitem *lock_separator = NULL;
static DbusmenuMenuitem *switch_menuitem = NULL;
static DbusmenuMenuitem * root_menuitem = NULL;
@@ -452,14 +451,12 @@ rebuild_items (DbusmenuMenuitem *root,
} else {
dbusmenu_menuitem_property_set_bool(lock_menuitem, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE);
}
- lock_separator = NULL;
if (can_activate == TRUE)
{
DbusmenuMenuitem * separator1 = dbusmenu_menuitem_new();
dbusmenu_menuitem_property_set(separator1, DBUSMENU_MENUITEM_PROP_TYPE, DBUSMENU_CLIENT_TYPES_SEPARATOR);
dbusmenu_menuitem_child_append(root, separator1);
- lock_separator = separator1;
if (check_guest_session ())
{
@@ -534,9 +531,6 @@ rebuild_items (DbusmenuMenuitem *root,
DbusmenuMenuitem * separator = dbusmenu_menuitem_new();
dbusmenu_menuitem_property_set(separator, DBUSMENU_MENUITEM_PROP_TYPE, DBUSMENU_CLIENT_TYPES_SEPARATOR);
dbusmenu_menuitem_child_append(root, separator);
- if (lock_separator == NULL) {
- lock_separator = separator;
- }
logout_mi = dbusmenu_menuitem_new();
if (supress_confirmations()) {