[gnome-builder] types: add missing IdeSettings to types and context



commit 3d81bfe2a0146bfea0521b3e50cd335ed03c8cc6
Author: Christian Hergert <christian hergert me>
Date:   Tue May 5 22:59:25 2015 -0700

    types: add missing IdeSettings to types and context

 libide/ide-context.h  |    3 +++
 libide/ide-settings.c |    3 +++
 libide/ide-types.h    |    2 ++
 3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-context.h b/libide/ide-context.h
index 3988347..9f8c256 100644
--- a/libide/ide-context.h
+++ b/libide/ide-context.h
@@ -39,6 +39,9 @@ IdeProject               *ide_context_get_project           (IdeContext
 GtkRecentManager         *ide_context_get_recent_manager    (IdeContext           *self);
 IdeScriptManager         *ide_context_get_script_manager    (IdeContext           *self);
 IdeSearchEngine          *ide_context_get_search_engine     (IdeContext           *self);
+IdeSettings              *ide_context_get_settings          (IdeContext           *self,
+                                                             const gchar          *schema_id,
+                                                             const gchar          *relative_path);
 IdeSourceSnippetsManager *ide_context_get_snippets_manager  (IdeContext           *self);
 IdeUnsavedFiles          *ide_context_get_unsaved_files     (IdeContext           *self);
 IdeVcs                   *ide_context_get_vcs               (IdeContext           *self);
diff --git a/libide/ide-settings.c b/libide/ide-settings.c
index 9088fb0..97e154f 100644
--- a/libide/ide-settings.c
+++ b/libide/ide-settings.c
@@ -77,6 +77,9 @@ ide_settings_set_relative_path (IdeSettings *self,
   g_assert (IDE_IS_SETTINGS (self));
   g_assert (relative_path != NULL);
 
+  if (*relative_path == '/')
+    relative_path++;
+
   if (!ide_str_equal0 (relative_path, self->relative_path))
     {
       g_free (self->relative_path);
diff --git a/libide/ide-types.h b/libide/ide-types.h
index befc45b..16869e7 100644
--- a/libide/ide-types.h
+++ b/libide/ide-types.h
@@ -112,6 +112,8 @@ typedef struct _IdeSearchResult                IdeSearchResult;
 
 typedef struct _IdeService                     IdeService;
 
+typedef struct _IdeSettings                    IdeSettings;
+
 typedef struct _IdeSourceLocation              IdeSourceLocation;
 
 typedef struct _IdeSourceRange                 IdeSourceRange;


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