[gnome-shell] Remove SessionType type
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Remove SessionType type
- Date: Tue, 22 May 2012 17:47:26 +0000 (UTC)
commit e49b94658cbb0c451bb4fa9bc6f91bdd959be3e8
Author: Florian MÃllner <fmuellner gnome org>
Date: Thu May 17 16:11:54 2012 +0200
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 ed6eaa2..dd36873 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 41c2161..4d92995 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]