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

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