From: Andrej Kacian Date: Tue, 6 Feb 2018 20:05:25 +0000 (+0100) Subject: ClawsSpellEntry does not need to implement GtkEditable X-Git-Tag: 3.17.0~213^2~8 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=ab7a2aca2002dfe472d93f6109b86c03e45ea2d4 ClawsSpellEntry does not need to implement GtkEditable We're "subclassing" GtkEntry, which already implements it. --- diff --git a/src/gtk/spell_entry.c b/src/gtk/spell_entry.c index 4f38b78d0..6b2d698a4 100644 --- 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);