Blame SOURCES/0017-session-selector-use-classic-mode-by-default.patch

f47161
From 976515e5601730a3f74b923eada6805554996794 Mon Sep 17 00:00:00 2001
b31790
From: Ray Strode <rstrode@redhat.com>
b31790
Date: Wed, 8 Jan 2014 10:15:29 -0500
b31790
Subject: [PATCH 17/19] session-selector: use classic mode by default
b31790
b31790
---
b31790
 tools/gnome-session-selector.c | 2 +-
b31790
 1 file changed, 1 insertion(+), 1 deletion(-)
b31790
b31790
diff --git a/tools/gnome-session-selector.c b/tools/gnome-session-selector.c
b31790
index a7361a5b..a41cd260 100644
b31790
--- a/tools/gnome-session-selector.c
b31790
+++ b/tools/gnome-session-selector.c
b31790
@@ -16,61 +16,61 @@
b31790
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
b31790
  *
b31790
  * Written by: Matthias Clasen <mclasen@redhat.com>
b31790
  */
b31790
 
b31790
 #include "config.h"
b31790
 
b31790
 #include <fcntl.h>
b31790
 #include <stdlib.h>
b31790
 #include <string.h>
b31790
 #include <sys/types.h>
b31790
 #include <sys/stat.h>
b31790
 #include <unistd.h>
b31790
 
b31790
 #include <glib.h>
b31790
 #include <gtk/gtk.h>
b31790
 #include <gio/gio.h>
b31790
 
b31790
 #include <glib/gi18n.h>
b31790
 #include <glib/gstdio.h>
b31790
 
b31790
 #include <dbus/dbus-glib.h>
b31790
 #include <dbus/dbus-glib-lowlevel.h>
b31790
 
b31790
 #define GSM_SERVICE_DBUS   "org.gnome.SessionManager"
b31790
 #define GSM_PATH_DBUS      "/org/gnome/SessionManager"
b31790
 #define GSM_INTERFACE_DBUS "org.gnome.SessionManager"
b31790
 
b31790
 #define GSM_MANAGER_SCHEMA        "org.gnome.SessionManager"
b31790
 #define KEY_AUTOSAVE_ONE_SHOT     "auto-save-session-one-shot"
b31790
-#define DEFAULT_SESSION_NAME      "gnome"
b31790
+#define DEFAULT_SESSION_NAME      "gnome-classic"
b31790
 
b31790
 static GtkBuilder *builder;
b31790
 static GtkWidget *session_list;
b31790
 static GtkListStore *store;
b31790
 static GtkTreeModelSort *sort_model;
b31790
 static char *info_text;
b31790
 
b31790
 static void select_session (const char *name);
b31790
 static gboolean make_session_current (const char *name);
b31790
 
b31790
 static char *
b31790
 get_session_path (const char *name)
b31790
 {
b31790
         return g_build_filename (g_get_user_config_dir (), "gnome-session", name, NULL);
b31790
 }
b31790
 
b31790
 static char *
b31790
 find_new_session_name (void)
b31790
 {
b31790
         char *name;
b31790
         char *path;
b31790
         int i;
b31790
 
b31790
         for (i = 1; i < 20; i++) {
b31790
                 name = g_strdup_printf (_("Session %d"), i);
b31790
                 path = get_session_path (name);
b31790
                 if (!g_file_test (path, G_FILE_TEST_EXISTS)) {
b31790
                         g_free (path);
b31790
                         return name;
b31790
                 }
b31790
-- 
f47161
2.17.0
b31790