[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-74-g97515cb7f

paul at claws-mail.org paul at claws-mail.org
Mon Aug 23 17:24:53 UTC 2021


The branch, gtk3 has been updated
       via  97515cb7f1601c688e5badce1274b0366ddcacd0 (commit)
      from  da1269449866334b732c09516cde2c236b7cf2f3 (commit)

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


- Log -----------------------------------------------------------------
commit 97515cb7f1601c688e5badce1274b0366ddcacd0
Author: paul <paul at claws-mail.org>
Date:   Mon Aug 23 18:24:49 2021 +0100

    replace deprecated g_type_class_add_private()

diff --git a/src/gtk/spell_entry.c b/src/gtk/spell_entry.c
index 7060027c3..a8d3d9a40 100644
--- a/src/gtk/spell_entry.c
+++ b/src/gtk/spell_entry.c
@@ -61,7 +61,7 @@ static void claws_spell_entry_preedit_changed		(GtkEntry *entry,
 						 gchar *preedit,
 						 gpointer data);
 
-struct _ClawsSpellEntryPriv
+typedef struct _ClawsSpellEntryPriv
 {
 	PangoAttrList        *attr_list;
 	gint                  mark_character;
@@ -69,12 +69,13 @@ struct _ClawsSpellEntryPriv
 	gint                 *word_starts;
 	gint                 *word_ends;
 	gint                  preedit_length;
-};
+} ClawsSpellEntryPrivate;
 
 static GtkEntryClass *parent_class = NULL;
 
 
-G_DEFINE_TYPE(ClawsSpellEntry, claws_spell_entry, GTK_TYPE_ENTRY)
+G_DEFINE_TYPE_WITH_CODE(ClawsSpellEntry, claws_spell_entry, GTK_TYPE_ENTRY,
+			G_ADD_PRIVATE(ClawsSpellEntry))
 
 
 static void claws_spell_entry_class_init(ClawsSpellEntryClass *klass)
@@ -91,9 +92,6 @@ static void claws_spell_entry_class_init(ClawsSpellEntryClass *klass)
 	widget_class->button_press_event = claws_spell_entry_button_press;
 	widget_class->draw = claws_spell_entry_expose;
 	widget_class->destroy = claws_spell_entry_destroy;
-	
-	g_type_class_add_private(g_object_class,
-			sizeof(struct _ClawsSpellEntryPriv));
 }
 
 static void claws_spell_entry_init(ClawsSpellEntry *entry)

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list