[Commits] [SCM] claws branch, master, updated. 3.17.0-129-g326921c

ticho at claws-mail.org ticho at claws-mail.org
Tue Oct 23 20:51:16 CEST 2018


The branch, master has been updated
       via  326921cbe7050daca9781c3eb3156c8c1b28453d (commit)
      from  9166f8a580b95095229975d2d33332d4ea921df8 (commit)

Summary of changes:
 src/gtk/spell_entry.c |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 326921cbe7050daca9781c3eb3156c8c1b28453d
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Tue Oct 23 20:51:06 2018 +0200

    Removed deprecated g_type_class_add_private() call in ClawsSpellEntry.

diff --git a/src/gtk/spell_entry.c b/src/gtk/spell_entry.c
index b17f6c9..6904d41 100644
--- a/src/gtk/spell_entry.c
+++ b/src/gtk/spell_entry.c
@@ -82,13 +82,19 @@ typedef struct
 
 static GtkEntryClass *parent_class = NULL;
 
-
+#if !GLIB_CHECK_VERSION(2,58, 0)
 G_DEFINE_TYPE(ClawsSpellEntry, claws_spell_entry, GTK_TYPE_ENTRY)
+#else
+G_DEFINE_TYPE_WITH_CODE(ClawsSpellEntry, claws_spell_entry, GTK_TYPE_ENTRY,
+		G_ADD_PRIVATE(ClawsSpellEntry))
+#endif
 
 
 static void claws_spell_entry_class_init(ClawsSpellEntryClass *klass)
 {
+#if !GLIB_CHECK_VERSION(2,58, 0)
 	GObjectClass	*g_object_class;
+#endif
 #if !GTK_CHECK_VERSION(3, 0, 0)
 	GtkObjectClass	*gtk_object_class;
 #endif
@@ -110,9 +116,11 @@ static void claws_spell_entry_class_init(ClawsSpellEntryClass *klass)
 	widget_class->destroy = claws_spell_entry_destroy;
 #endif
 
+#if !GLIB_CHECK_VERSION(2,58, 0)
 	g_object_class = G_OBJECT_CLASS(klass);
 	g_type_class_add_private(g_object_class,
 			sizeof(ClawsSpellEntryPrivate));
+#endif
 }
 
 static void claws_spell_entry_init(ClawsSpellEntry *entry)

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list