talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 326921cbe7050daca9781c3eb3156c8c1b28453d
parent 9166f8a580b95095229975d2d33332d4ea921df8
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Tue, 23 Oct 2018 20:51:06 +0200

Removed deprecated g_type_class_add_private() call in ClawsSpellEntry.

Diffstat:
Msrc/gtk/spell_entry.c | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git 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)