[Commits] [SCM] claws branch, master, updated. 3.17.0-178-gca73579
ticho at claws-mail.org
ticho at claws-mail.org
Sat Nov 24 22:38:13 CET 2018
The branch, master has been updated
via ca73579c35c3918b41ed93f2f3eeee8951c9f173 (commit)
from 62c803c003b57bb7be26103c414499ea4a0db6b5 (commit)
Summary of changes:
src/plugins/python/python-shell.c | 7 +++++++
1 file changed, 7 insertions(+)
- Log -----------------------------------------------------------------
commit ca73579c35c3918b41ed93f2f3eeee8951c9f173
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Sat Nov 24 22:37:11 2018 +0100
Removed deprecated g_type_class_add_private() call in ParasitePythonShell.
diff --git a/src/plugins/python/python-shell.c b/src/plugins/python/python-shell.c
index de98d97..96d0095 100644
--- a/src/plugins/python/python-shell.c
+++ b/src/plugins/python/python-shell.c
@@ -69,7 +69,12 @@ static gboolean parasite_python_shell_key_press_cb(GtkWidget *textview,
static GtkVBoxClass *parent_class = NULL;
//static guint signals[LAST_SIGNAL] = {0};
+#if !GLIB_CHECK_VERSION(2, 58, 0)
G_DEFINE_TYPE(ParasitePythonShell, parasite_python_shell, GTK_TYPE_VBOX);
+#else
+G_DEFINE_TYPE_WITH_CODE(ParasitePythonShell, parasite_python_shell,
+ GTK_TYPE_VBOX, G_ADD_PRIVATE(ParasitePythonShell))
+#endif
static void
@@ -81,7 +86,9 @@ parasite_python_shell_class_init(ParasitePythonShellClass *klass)
object_class->finalize = parasite_python_shell_finalize;
+#if !GLIB_CHECK_VERSION(2, 58, 0)
g_type_class_add_private(klass, sizeof(ParasitePythonShellPrivate));
+#endif
}
static void
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list