[Xfce4-commits] [apps/ristretto] 01/01: Resolve g_type_class_add_private() deprecation
noreply at xfce.org
noreply at xfce.org
Sun Apr 7 22:49:42 CEST 2019
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/ristretto.
commit e5ea97183939216223b1a15f97ade9314a3ec97a
Author: Igor <f2404 at yandex.ru>
Date: Sun Apr 7 16:49:36 2019 -0400
Resolve g_type_class_add_private() deprecation
---
src/icon_bar.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/icon_bar.c b/src/icon_bar.c
index 1bcb691..b51d239 100644
--- a/src/icon_bar.c
+++ b/src/icon_bar.c
@@ -291,7 +291,11 @@ struct _RsttoIconBarPrivate
static guint icon_bar_signals[LAST_SIGNAL];
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
G_DEFINE_TYPE (RsttoIconBar, rstto_icon_bar, GTK_TYPE_CONTAINER)
+#else
+G_DEFINE_TYPE_WITH_CODE (RsttoIconBar, rstto_icon_bar, GTK_TYPE_CONTAINER, G_ADD_PRIVATE (RsttoIconBar))
+#endif
static void
@@ -301,7 +305,9 @@ rstto_icon_bar_class_init (RsttoIconBarClass *klass)
GtkWidgetClass *gtkwidget_class;
GObjectClass *gobject_class;
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
g_type_class_add_private (klass, sizeof (RsttoIconBarPrivate));
+#endif
gobject_class = G_OBJECT_CLASS (klass);
gobject_class->finalize = rstto_icon_bar_finalize;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list