From 19318a1eebb99f5e94dca9f98d03359a54620d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 17 May 2012 00:28:34 +0200 Subject: [PATCH] global: Remove session_type property ShellGlobal:session-type is now unsed, remove it. https://bugzilla.gnome.org/show_bug.cgi?id=676156 --- src/shell-global-private.h | 3 --- src/shell-global.c | 42 -------------------------------------- src/shell-global.h | 1 - 3 files changed, 46 deletions(-) diff --git a/src/shell-global-private.h b/src/shell-global-private.h index 45e204ff3..194312d65 100644 --- a/src/shell-global-private.h +++ b/src/shell-global-private.h @@ -17,7 +17,4 @@ gboolean _shell_global_has_valid_session_mode (ShellGlobal *global); gboolean _shell_global_check_xdnd_event (ShellGlobal *global, XEvent *xev); -void _shell_global_set_session_type (ShellGlobal *global, - ShellSessionType session_type); - #endif /* __SHELL_GLOBAL_PRIVATE_H__ */ diff --git a/src/shell-global.c b/src/shell-global.c index bc5a5c16d..ab3b59ea4 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -97,7 +97,6 @@ struct _ShellGlobal { enum { PROP_0, - PROP_SESSION_TYPE, PROP_SESSION_MODE, PROP_OVERLAY_GROUP, PROP_SCREEN, @@ -164,9 +163,6 @@ shell_global_get_property(GObject *object, switch (prop_id) { - case PROP_SESSION_TYPE: - g_value_set_enum (value, shell_global_get_session_type (global)); - break; case PROP_SESSION_MODE: g_value_set_string (value, shell_global_get_session_mode (global)); break; @@ -347,14 +343,6 @@ shell_global_class_init (ShellGlobalClass *klass) G_TYPE_STRING, G_TYPE_STRING); - g_object_class_install_property (gobject_class, - PROP_SESSION_TYPE, - g_param_spec_enum ("session-type", - "Session Type", - "The type of session", - SHELL_TYPE_SESSION_TYPE, - SHELL_SESSION_USER, - G_PARAM_READABLE)); g_object_class_install_property (gobject_class, PROP_SESSION_MODE, g_param_spec_string ("session-mode", @@ -1803,36 +1791,6 @@ shell_global_launch_calendar_server (ShellGlobal *global) g_free (calendar_server_exe); } -/** - * shell_global_get_session_type: - * @global: The #ShellGlobal. - * - * Gets the type of session gnome-shell provides. - * - * The type determines what UI elements are displayed, - * what keybindings work, and generally how the shell - * behaves. - * - * A session type of #SHELL_SESSION_USER means gnome-shell - * will enable the activities overview, status menu, run dialog, - * etc. This is the default. - * - * A session type of #SHELL_SESSION_GDM means gnome-shell - * will enable a login dialog and run in a more confined - * way. This type is suitable for the display manager. - * - * Returns: the type of session gnome-shell is providing. - */ -ShellSessionType -shell_global_get_session_type (ShellGlobal *global) -{ - g_return_val_if_fail (SHELL_IS_GLOBAL (global), - SHELL_SESSION_USER); - - return strcmp (global->session_mode, "gdm") == 0 ? SHELL_SESSION_GDM - : SHELL_SESSION_USER; -} - const char * shell_global_get_session_mode (ShellGlobal *global) { diff --git a/src/shell-global.h b/src/shell-global.h index 908ec9e02..41c21613c 100644 --- a/src/shell-global.h +++ b/src/shell-global.h @@ -146,7 +146,6 @@ typedef enum { SHELL_SESSION_GDM } ShellSessionType; -ShellSessionType shell_global_get_session_type (ShellGlobal *global); const char * shell_global_get_session_mode (ShellGlobal *global); G_END_DECLS