[gnome-shell] global: Remove session_type property



commit 19318a1eebb99f5e94dca9f98d03359a54620d0a
Author: Florian MÃllner <fmuellner gnome org>
Date:   Thu May 17 00:28:34 2012 +0200

    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, 0 insertions(+), 46 deletions(-)
---
diff --git a/src/shell-global-private.h b/src/shell-global-private.h
index 45e204f..194312d 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 bc5a5c1..ab3b59e 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;
@@ -348,14 +344,6 @@ shell_global_class_init (ShellGlobalClass *klass)
                     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",
                                                         "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 908ec9e..41c2161 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]