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



commit 46da229ebb82ff1878ddb71d5ee98fb237a273c3
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]