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

device-manager: use ide_extension_set_new()

This allows locating :context from IdeObject when instantiating plugins.

https://bugzilla.gnome.org/show_bug.cgi?id=779891
parent f20f3e4d
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "ide-device-provider.h" #include "ide-device-provider.h"
#include "local/ide-local-device.h" #include "local/ide-local-device.h"
#include "plugins/ide-extension-util.h"
struct _IdeDeviceManager struct _IdeDeviceManager
{ {
...@@ -249,10 +250,10 @@ ide_device_manager_add_providers (IdeDeviceManager *self) ...@@ -249,10 +250,10 @@ ide_device_manager_add_providers (IdeDeviceManager *self)
context = ide_object_get_context (IDE_OBJECT (self)); context = ide_object_get_context (IDE_OBJECT (self));
self->providers = peas_extension_set_new (peas_engine_get_default (), self->providers = ide_extension_set_new (peas_engine_get_default (),
IDE_TYPE_DEVICE_PROVIDER, IDE_TYPE_DEVICE_PROVIDER,
"context", context, "context", context,
NULL); NULL);
g_signal_connect (self->providers, g_signal_connect (self->providers,
"extension-added", "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