commit ab7a2aca2002dfe472d93f6109b86c03e45ea2d4
parent 636cc1edc08b4a15e2514143e6642908c339a00b
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Tue, 6 Feb 2018 21:05:25 +0100
ClawsSpellEntry does not need to implement GtkEditable
We're "subclassing" GtkEntry, which already implements it.
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/gtk/spell_entry.c b/src/gtk/spell_entry.c
@@ -44,7 +44,6 @@
#include "gtkutils.h"
static void claws_spell_entry_init (ClawsSpellEntry *entry);
-static void claws_spell_entry_editable_init (GtkEditableClass *iface);
static void claws_spell_entry_finalize (GObject *object);
#if !GTK_CHECK_VERSION(3, 0, 0)
static void claws_spell_entry_destroy (GtkObject *object);
@@ -77,7 +76,7 @@ struct _ClawsSpellEntryPriv
static GtkEntryClass *parent_class = NULL;
-G_DEFINE_TYPE_EXTENDED(ClawsSpellEntry, claws_spell_entry, GTK_TYPE_ENTRY, 0, G_IMPLEMENT_INTERFACE(GTK_TYPE_EDITABLE, claws_spell_entry_editable_init));
+G_DEFINE_TYPE(ClawsSpellEntry, claws_spell_entry, GTK_TYPE_ENTRY)
static void claws_spell_entry_class_init(ClawsSpellEntryClass *klass)
@@ -126,8 +125,6 @@ static void claws_spell_entry_init(ClawsSpellEntry *entry)
G_CALLBACK(claws_spell_entry_changed), NULL);
}
-static void claws_spell_entry_editable_init (GtkEditableClass *iface) {}
-
static void claws_spell_entry_finalize(GObject *object)
{
ClawsSpellEntry *entry = CLAWS_SPELL_ENTRY(object);