From e49b94658cbb0c451bb4fa9bc6f91bdd959be3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 17 May 2012 16:11:54 +0200 Subject: [PATCH] Remove SessionType type SessionType has now completely been replaced by the finer-grained session-mode, so remove the remaining type definition. https://bugzilla.gnome.org/show_bug.cgi?id=676156 --- js/ui/sessionMode.js | 9 ++++----- src/shell-global.h | 5 ----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js index ed6eaa2e9..dd36873c3 100644 --- a/js/ui/sessionMode.js +++ b/js/ui/sessionMode.js @@ -1,7 +1,6 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- const Lang = imports.lang; -const Shell = imports.gi.Shell; const Config = imports.misc.config; const Main = imports.ui.main; @@ -53,8 +52,8 @@ const _modes = { 'keyboard': imports.ui.status.keyboard.XKBIndicator, 'powerMenu': imports.gdm.powerMenu.PowerMenuButton } - }, - sessionType: Shell.SessionType.GDM }, + } + }, 'user': { hasOverview: true, hasAppMenu: true, @@ -72,8 +71,8 @@ const _modes = { 'network', 'battery', 'userMenu' ], implementation: STANDARD_STATUS_AREA_SHELL_IMPLEMENTATION - }, - sessionType: Shell.SessionType.USER } + } + } }; function modeExists(mode) { diff --git a/src/shell-global.h b/src/shell-global.h index 41c21613c..4d92995c9 100644 --- a/src/shell-global.h +++ b/src/shell-global.h @@ -141,11 +141,6 @@ void shell_global_reexec_self (ShellGlobal *global); void shell_global_launch_calendar_server (ShellGlobal *global); -typedef enum { - SHELL_SESSION_USER, - SHELL_SESSION_GDM -} ShellSessionType; - const char * shell_global_get_session_mode (ShellGlobal *global); G_END_DECLS