Commit 644df227 authored by Christian Hergert's avatar Christian Hergert
Browse files

search: drop use of :context property

We can inherit this from IdeObject now and still have it attached to
plugins at creation time.

https://bugzilla.gnome.org/show_bug.cgi?id=779891
parent 22d2c012
......@@ -20,10 +20,12 @@
#include <libpeas/peas.h>
#include "ide-internal.h"
#include "ide-search-context.h"
#include "ide-search-engine.h"
#include "ide-search-provider.h"
#include "ide-search-result.h"
#include "plugins/ide-extension-util.h"
#include "search/ide-search-context.h"
#include "search/ide-search-engine.h"
#include "search/ide-search-provider.h"
#include "search/ide-search-result.h"
struct _IdeSearchEngine
{
......@@ -89,10 +91,10 @@ ide_search_engine_constructed (GObject *object)
context = ide_object_get_context (IDE_OBJECT (self));
self->extensions = peas_extension_set_new (peas_engine_get_default (),
IDE_TYPE_SEARCH_PROVIDER,
"context", context,
NULL);
self->extensions = ide_extension_set_new (peas_engine_get_default (),
IDE_TYPE_SEARCH_PROVIDER,
"context", context,
NULL);
G_OBJECT_CLASS (ide_search_engine_parent_class)->constructed (object);
}
......
......@@ -65,13 +65,6 @@ ide_search_provider_default_init (IdeSearchProviderInterface *iface)
iface->get_prefix = ide_search_provider_real_get_prefix;
iface->create_row = ide_search_provider_real_create_row;
iface->activate = ide_search_provider_real_activate;
g_object_interface_install_property (iface,
g_param_spec_object ("context",
"Context",
"Context",
IDE_TYPE_CONTEXT,
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
}
const gchar *
......
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