[gnome-builder] indenter: drop :context property
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] indenter: drop :context property
- Date: Sat, 11 Mar 2017 10:09:46 +0000 (UTC)
commit 3bb3e44cfc74920a53bf59d8c7c961de679aa9ab
Author: Christian Hergert <chergert redhat com>
Date: Sat Mar 11 01:52:26 2017 -0800
indenter: drop :context property
We can get :context from the IdeObject class now.
https://bugzilla.gnome.org/show_bug.cgi?id=779891
libide/sourceview/ide-indenter.c | 9 +--------
libide/sourceview/ide-indenter.h | 4 +---
2 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/libide/sourceview/ide-indenter.c b/libide/sourceview/ide-indenter.c
index 375dd2b..4016d47 100644
--- a/libide/sourceview/ide-indenter.c
+++ b/libide/sourceview/ide-indenter.c
@@ -21,7 +21,7 @@
#include "ide-context.h"
#include "ide-indenter.h"
-G_DEFINE_INTERFACE (IdeIndenter, ide_indenter, G_TYPE_OBJECT)
+G_DEFINE_INTERFACE (IdeIndenter, ide_indenter, IDE_TYPE_OBJECT)
static gchar *
ide_indenter_default_format (IdeIndenter *self,
@@ -46,13 +46,6 @@ ide_indenter_default_init (IdeIndenterInterface *iface)
{
iface->format = ide_indenter_default_format;
iface->is_trigger = ide_indenter_default_is_trigger;
-
- 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)));
}
/**
diff --git a/libide/sourceview/ide-indenter.h b/libide/sourceview/ide-indenter.h
index f785096..0ff97a1 100644
--- a/libide/sourceview/ide-indenter.h
+++ b/libide/sourceview/ide-indenter.h
@@ -27,7 +27,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_INDENTER (ide_indenter_get_type())
-G_DECLARE_INTERFACE (IdeIndenter, ide_indenter, IDE, INDENTER, GObject)
+G_DECLARE_INTERFACE (IdeIndenter, ide_indenter, IDE, INDENTER, IdeObject)
struct _IdeIndenterInterface
{
@@ -41,8 +41,6 @@ struct _IdeIndenterInterface
GdkEventKey *event);
gboolean (*is_trigger) (IdeIndenter *self,
GdkEventKey *event);
- void (*set_context) (IdeIndenter *self,
- IdeContext *context);
};
gboolean ide_indenter_is_trigger (IdeIndenter *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]