[gnome-builder] context: use ide_extension_set_new() for creating services
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] context: use ide_extension_set_new() for creating services
- Date: Sat, 11 Mar 2017 10:09:30 +0000 (UTC)
commit f20f3e4dc9133bfcf289fec2b44715928195c739
Author: Christian Hergert <chergert redhat com>
Date: Sat Mar 11 01:49:51 2017 -0800
context: use ide_extension_set_new() for creating services
This allows us to locate :context from the IdeObject class when
instantiating plugins.
https://bugzilla.gnome.org/show_bug.cgi?id=779891
libide/ide-context.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libide/ide-context.c b/libide/ide-context.c
index fd08622..6ddf5b0 100644
--- a/libide/ide-context.c
+++ b/libide/ide-context.c
@@ -39,6 +39,7 @@
#include "doap/ide-doap.h"
#include "history/ide-back-forward-list-private.h"
#include "history/ide-back-forward-list.h"
+#include "plugins/ide-extension-util.h"
#include "projects/ide-project-files.h"
#include "projects/ide-project-item.h"
#include "projects/ide-project.h"
@@ -1224,10 +1225,10 @@ ide_context_init_services (gpointer source_object,
task = g_task_new (self, cancellable, callback, user_data);
self->services_by_gtype = g_hash_table_new (NULL, NULL);
- self->services = peas_extension_set_new (peas_engine_get_default (),
- IDE_TYPE_SERVICE,
- "context", self,
- NULL);
+ self->services = ide_extension_set_new (peas_engine_get_default (),
+ IDE_TYPE_SERVICE,
+ "context", self,
+ NULL);
g_signal_connect_object (self->services,
"extension-added",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]