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