[Commits] [SCM] claws branch, master, updated. 3.17.0-127-g730f6e2

ticho at claws-mail.org ticho at claws-mail.org
Tue Oct 23 20:31:39 CEST 2018


The branch, master has been updated
       via  730f6e21f42b49c6bd6e33bc36787b77d4ba96d3 (commit)
      from  22a05e81e35409b293911e699cca8d54f0807ff0 (commit)

Summary of changes:
 src/gtk/gtkshruler.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 730f6e21f42b49c6bd6e33bc36787b77d4ba96d3
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Tue Oct 23 20:30:49 2018 +0200

    Removed deprecated g_type_class_add_private() call in GtkSHRuler.

diff --git a/src/gtk/gtkshruler.c b/src/gtk/gtkshruler.c
index 5c568ed..9191d82 100644
--- a/src/gtk/gtkshruler.c
+++ b/src/gtk/gtkshruler.c
@@ -178,8 +178,12 @@ static void          gtk_shruler_make_pixmap   (GtkSHRuler      *ruler);
 static PangoLayout * gtk_shruler_get_layout    (GtkWidget      *widget,
                                               const gchar    *text);
 
-
+#if !GLIB_CHECK_VERSION(2, 58, 0)
 G_DEFINE_TYPE (GtkSHRuler, gtk_shruler, GTK_TYPE_WIDGET)
+#else
+G_DEFINE_TYPE_WITH_CODE (GtkSHRuler, gtk_shruler, GTK_TYPE_WIDGET,
+		G_ADD_PRIVATE(GtkSHRuler))
+#endif
 
 #define parent_class gtk_shruler_parent_class
 
@@ -213,7 +217,9 @@ gtk_shruler_class_init (GtkSHRulerClass *klass)
   widget_class->draw                = gtk_shruler_expose;
 #endif
 
+#if !GLIB_CHECK_VERSION(2, 58, 0)
   g_type_class_add_private (object_class, sizeof (GtkSHRulerPrivate));
+#endif
 
   g_object_class_install_property (object_class,
                                    PROP_ORIENTATION,

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list