[gnome-builder] gsettings: remove project-history gsettings



commit 328edb67b5bfaa9850af15b52e1d3a13c46e755a
Author: Christian Hergert <christian hergert me>
Date:   Tue Apr 7 23:49:30 2015 -0700

    gsettings: remove project-history gsettings
    
    This isn't needed anymore, as we will use GtkRecentManager.

 configure.ac                                    |    1 -
 data/gsettings.mk                               |    1 -
 data/gsettings/org.gnome.builder.gschema.xml.in |    9 -----
 src/app/gb-application.c                        |   39 -----------------------
 4 files changed, 0 insertions(+), 50 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fb14a2e..725dc19 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,7 +71,6 @@ AC_CONFIG_FILES([
        src/util/gb-version.h
        data/icons/Makefile
        data/libide-1.0.pc
-       data/gsettings/org.gnome.builder.gschema.xml
        data/gsettings/org.gnome.builder.editor.gschema.xml
        data/gsettings/org.gnome.builder.editor.language.gschema.xml
        data/gsettings/org.gnome.builder.experimental.gschema.xml
diff --git a/data/gsettings.mk b/data/gsettings.mk
index 3526f5f..cb77de0 100644
--- a/data/gsettings.mk
+++ b/data/gsettings.mk
@@ -1,5 +1,4 @@
 gsettingsschema_in_files = \
-       data/gsettings/org.gnome.builder.gschema.xml.in \
        data/gsettings/org.gnome.builder.editor.gschema.xml.in \
        data/gsettings/org.gnome.builder.editor.language.gschema.xml.in \
        data/gsettings/org.gnome.builder.experimental.gschema.xml.in \
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index 6492735..3d1bf71 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -283,43 +283,6 @@ on_create_buffer (IdeBufferManager *buffer_manager,
 }
 
 static void
-gb_application_add_recent_project (GbApplication *self,
-                                   IdeContext    *context)
-{
-  GPtrArray *ar;
-  GSettings *settings;
-  gchar **project_history;
-  GFile *project_file;
-  gchar *uri;
-  gsize i;
-
-  g_assert (GB_IS_APPLICATION (self));
-  g_assert (IDE_IS_CONTEXT (context));
-
-  project_file = ide_context_get_project_file (context);
-  uri = g_file_get_uri (project_file);
-
-  settings = g_settings_new ("org.gnome.builder");
-  project_history = g_settings_get_strv (settings, "project-history");
-
-  ar = g_ptr_array_new ();
-  g_ptr_array_add (ar, uri);
-  for (i = 0; project_history [i]; i++)
-    {
-      if (!g_str_equal (uri, project_history [i]))
-        g_ptr_array_add (ar, project_history [i]);
-    }
-  g_ptr_array_add (ar, NULL);
-
-  g_settings_set_strv (settings, "project-history", (const gchar * const *)ar->pdata);
-
-  g_ptr_array_free (ar, TRUE);
-  g_strfreev (project_history);
-  g_free (uri);
-  g_object_unref (settings);
-}
-
-static void
 gb_application__context_new_cb (GObject      *object,
                                 GAsyncResult *result,
                                 gpointer      user_data)
@@ -351,8 +314,6 @@ gb_application__context_new_cb (GObject      *object,
       goto cleanup;
     }
 
-  gb_application_add_recent_project (self, context);
-
   {
     IdeVcs *vcs;
     GFile *workdir;


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