[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-492-gf758c61
ticho at claws-mail.org
ticho at claws-mail.org
Sat Nov 24 22:38:42 CET 2018
The branch, gtk3 has been updated
via f758c617b61859d97fb1c8b00eaf0c21d29d3743 (commit)
from 98e157fb30395f79d7088d7933832490b449c912 (commit)
Summary of changes:
src/plugins/python/python-shell.c | 7 +++++++
1 file changed, 7 insertions(+)
- Log -----------------------------------------------------------------
commit f758c617b61859d97fb1c8b00eaf0c21d29d3743
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