ClawsSpellEntry does not need to implement GtkEditable
authorAndrej Kacian <ticho@claws-mail.org>
Tue, 6 Feb 2018 20:05:25 +0000 (21:05 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Tue, 6 Feb 2018 20:05:25 +0000 (21:05 +0100)
We're "subclassing" GtkEntry, which already implements it.

src/gtk/spell_entry.c

index 4f38b78..6b2d698 100644 (file)
@@ -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);