gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet-gtk] branch master updated: avoid use of deprecated


From: gnunet
Subject: [GNUnet-SVN] [gnunet-gtk] branch master updated: avoid use of deprecated g_type_class_add_private
Date: Sun, 17 Feb 2019 20:51:19 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet-gtk.

The following commit(s) were added to refs/heads/master by this push:
     new ab6e2dc8 avoid use of deprecated g_type_class_add_private
ab6e2dc8 is described below

commit ab6e2dc87b6a0e79885ee121986b732f4db40f0f
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Feb 17 20:51:17 2019 +0100

    avoid use of deprecated g_type_class_add_private
---
 src/statistics/gtk_statistics.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/statistics/gtk_statistics.c b/src/statistics/gtk_statistics.c
index fa3ae087..d7259bfc 100644
--- a/src/statistics/gtk_statistics.c
+++ b/src/statistics/gtk_statistics.c
@@ -122,10 +122,14 @@ static void
 gtk_statistics_finalize (GObject * object);
 
 
-G_DEFINE_TYPE (GtkStatistics, gtk_statistics, GTK_TYPE_WIDGET)
+G_DEFINE_TYPE_EXTENDED (GtkStatistics, gtk_statistics, GTK_TYPE_WIDGET, 0,
+                        G_ADD_PRIVATE (GtkStatistics))
+
+
 #if GTK_MAJOR_VERSION < 3
-  static gboolean statistics_expose (GtkWidget * statistics,
-                                     GdkEventExpose * event)
+static gboolean
+statistics_expose (GtkWidget * statistics,
+                   GdkEventExpose * event)
 {
   GtkAllocation alloc;
   cairo_t *cr;
@@ -161,8 +165,6 @@ gtk_statistics_class_init (GtkStatisticsClass * class)
 #if GTK_MAJOR_VERSION >= 3
   widget_class->draw = gtk_statistics_draw;
 #endif
-
-  g_type_class_add_private (class, sizeof (GtkStatisticsPrivate));
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]