Commit f20f3e4d authored by Christian Hergert's avatar Christian Hergert
Browse files

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
parent eb7bc79c
......@@ -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",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment