aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-07-15 12:54:17 +0100
committerConor Curran <conor.curran@canonical.com>2011-07-15 12:54:17 +0100
commit019030dc92107fb553e1f791cc2225b67b74968b (patch)
tree8043c9396576f983ec94ecf6ecccc4bb7c002e8a /src/session-service.c
parenta25c68ce0d98e56921f38683a81e6d996446f744 (diff)
downloadayatana-indicator-session-019030dc92107fb553e1f791cc2225b67b74968b.tar.gz
ayatana-indicator-session-019030dc92107fb553e1f791cc2225b67b74968b.tar.bz2
ayatana-indicator-session-019030dc92107fb553e1f791cc2225b67b74968b.zip
first step - it compiles
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 78cd9ae..6095838 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -44,7 +44,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "dbus-shared-names.h"
#include "dbusmenu-shared.h"
#include "users-service-dbus.h"
-#include "users-menu-mgr.h"
+#include "user-menu-mgr.h"
#include "gconf-helper.h"
@@ -52,7 +52,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "lock-helper.h"
#include "upower-client.h"
-
#define UP_ADDRESS "org.freedesktop.UPower"
#define UP_OBJECT "/org/freedesktop/UPower"
#define UP_INTERFACE "org.freedesktop.UPower"
@@ -160,9 +159,8 @@ lock_if_possible (void) {
ensure_gconf_client ();
if (!gconf_client_get_bool (gconf_client, LOCKDOWN_KEY_SCREENSAVER, NULL)) {
- lock_screen(NULL, 0, NULL);
+ lock_screen (NULL, 0, NULL);
}
-
return;
}
@@ -600,19 +598,7 @@ main (int argc, char ** argv)
// Users
UserMenuMgr* user_mgr = g_object_new (USER_TYPE_MENU_MGR, NULL);
-
- //users_root_menuitem = dbusmenu_menuitem_new();
- //rebuild_user_items (users_root_menuitem, dbus_interface);
- /*g_signal_connect (G_OBJECT (dbus_interface),
- "user-added",
- G_CALLBACK (user_change),
- users_root_menuitem);
- g_signal_connect (G_OBJECT (dbus_interface),
- "user-removed",
- G_CALLBACK (user_change),
- users_root_menuitem);
- */
-
+
setup_restart_watch();
setup_up();