talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit f758c617b61859d97fb1c8b00eaf0c21d29d3743
parent 98e157fb30395f79d7088d7933832490b449c912
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sat, 24 Nov 2018 22:37:11 +0100

Removed deprecated g_type_class_add_private() call in ParasitePythonShell.

Diffstat:
Msrc/plugins/python/python-shell.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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