[gnome-builder/wip/libide] libide: set context when loading filesettings



commit d3f0f6f730eb1086a9d1c37cec7c0d816925d8c5
Author: Christian Hergert <christian hergert me>
Date:   Sat Feb 14 18:04:46 2015 -0800

    libide: set context when loading filesettings

 libide/ide-file.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-file.c b/libide/ide-file.c
index e4ea535..d47eefe 100644
--- a/libide/ide-file.c
+++ b/libide/ide-file.c
@@ -256,18 +256,20 @@ ide_file_load_settings_async (IdeFile              *self,
                               GAsyncReadyCallback   callback,
                               gpointer              user_data)
 {
+  IdeContext *context;
   g_autoptr(GTask) task = NULL;
 
   g_return_if_fail (IDE_IS_FILE (self));
   g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
 
   task = g_task_new (self, cancellable, callback, user_data);
-
+  context = ide_object_get_context (IDE_OBJECT (self));
   ide_object_new_async (IDE_FILE_SETTINGS_EXTENSION_POINT,
                         G_PRIORITY_DEFAULT,
                         cancellable,
                         ide_file_load_settings_cb,
                         g_object_ref (task),
+                        "context", context,
                         "file", self,
                         NULL);
 }


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