[gnome-builder] settings: Fix decleration of _ide_settings_new()



commit 672dd661159c1a908526022f1013019ff17bd4c8
Author: Garrett Regier <garrettregier gmail com>
Date:   Wed May 6 22:59:28 2015 -0700

    settings: Fix decleration of _ide_settings_new()
    
    This was causing GObject to warn because
    ide_context_get_settings() was specifying a
    'junk on the stack' value for the property
    "ignore-project-settings".
    
    Signed-off-by: Garrett Regier <garrettregier gmail com>

 libide/ide-context.c  |    2 +-
 libide/ide-internal.h |    3 ++-
 libide/ide-settings.c |    1 +
 3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-context.c b/libide/ide-context.c
index 0fea30f..3c02004 100644
--- a/libide/ide-context.c
+++ b/libide/ide-context.c
@@ -1752,5 +1752,5 @@ ide_context_get_settings (IdeContext  *self,
   g_return_val_if_fail (IDE_IS_CONTEXT (self), NULL);
   g_return_val_if_fail (schema_id != NULL, NULL);
 
-  return  _ide_settings_new (self, schema_id, relative_path);
+  return  _ide_settings_new (self, schema_id, relative_path, FALSE);
 }
diff --git a/libide/ide-internal.h b/libide/ide-internal.h
index c0e89e0..cf84a45 100644
--- a/libide/ide-internal.h
+++ b/libide/ide-internal.h
@@ -97,7 +97,8 @@ void                _ide_search_context_add_provider   (IdeSearchContext      *c
                                                         gsize                  max_results);
 IdeSettings        *_ide_settings_new                  (IdeContext            *context,
                                                         const gchar           *schema_id,
-                                                        const gchar           *relative_path);
+                                                        const gchar           *relative_path,
+                                                        gboolean               ignore_project_settings);
 IdeSourceRange     *_ide_source_range_new              (IdeSourceLocation     *begin,
                                                         IdeSourceLocation     *end);
 gboolean            _ide_source_view_mode_do_event     (IdeSourceViewMode     *mode,
diff --git a/libide/ide-settings.c b/libide/ide-settings.c
index bb9bebe..9f5e046 100644
--- a/libide/ide-settings.c
+++ b/libide/ide-settings.c
@@ -27,6 +27,7 @@
 #include "ide-debug.h"
 #include "ide-project.h"
 #include "ide-settings.h"
+#include "ide-internal.h"
 
 /**
  * SECTION:ide-settings


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