[gnome-builder] search: drop use of :context property
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] search: drop use of :context property
- Date: Sat, 11 Mar 2017 10:10:21 +0000 (UTC)
commit 644df227308995090724a95a00543a50ed6b9d2a
Author: Christian Hergert <chergert redhat com>
Date: Sat Mar 11 01:59:14 2017 -0800
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
libide/search/ide-search-engine.c | 18 ++++++++++--------
libide/search/ide-search-provider.c | 7 -------
2 files changed, 10 insertions(+), 15 deletions(-)
---
diff --git a/libide/search/ide-search-engine.c b/libide/search/ide-search-engine.c
index c071b3b..43e47b5 100644
--- a/libide/search/ide-search-engine.c
+++ b/libide/search/ide-search-engine.c
@@ -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);
}
diff --git a/libide/search/ide-search-provider.c b/libide/search/ide-search-provider.c
index c119351..187d607 100644
--- a/libide/search/ide-search-provider.c
+++ b/libide/search/ide-search-provider.c
@@ -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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]