[Commits] [SCM] claws branch, master, updated. 3.16.0-37-gab7a2ac

ticho at claws-mail.org ticho at claws-mail.org
Tue Feb 6 21:05:56 CET 2018


The branch, master has been updated
       via  ab7a2aca2002dfe472d93f6109b86c03e45ea2d4 (commit)
      from  636cc1edc08b4a15e2514143e6642908c339a00b (commit)

Summary of changes:
 src/gtk/spell_entry.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit ab7a2aca2002dfe472d93f6109b86c03e45ea2d4
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Tue Feb 6 21:05:25 2018 +0100

    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 4f38b78..6b2d698 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);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list