summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-06-05 20:13:15 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-06-05 20:23:37 -0300
commit3a60ab3835bd96b17cc86133e163b9d7c692ba48 (patch)
tree376fc58f4ef2ff56ce69ab81d0f6b551e590816a
parentbdf0f49409cb850607567daf4f7ded77fbf94b83 (diff)
downloadglade-3a60ab3835bd96b17cc86133e163b9d7c692ba48.tar.gz
Python plugin: fix linking error
Since pygobject 3.8 we need to link with python-3.8-embed to avoid missing symbols when loading the plugin. Fix compiler warning
-rw-r--r--meson.build2
-rw-r--r--plugins/python/glade-python.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 201f16c2..af0a21d8 100644
--- a/meson.build
+++ b/meson.build
@@ -132,7 +132,7 @@ pygobject_version = '3.8.0'
pygobject_dep = dependency('pygobject-3.0', version: '>= ' + pygobject_version, required: get_option('python'))
have_python = pygobject_dep.found()
if have_python
- python_dep = import('python').find_installation().dependency()
+ python_dep = dependency('python-3.8-embed', version: '>= 3.8')
version_array = pygobject_version.split('.')
config_h.set('PYGOBJECT_REQUIRED_MAJOR', version_array[0].to_int())
diff --git a/plugins/python/glade-python.c b/plugins/python/glade-python.c
index c7d38774..bbdbbe77 100644
--- a/plugins/python/glade-python.c
+++ b/plugins/python/glade-python.c
@@ -110,7 +110,7 @@ glade_python_setup ()
if (PyErr_Occurred ())
{
PyObject *ptype, *pvalue, *ptraceback, *pstr;
- char *pvalue_char = "";
+ const char *pvalue_char = "";
PyErr_Fetch (&ptype, &pvalue, &ptraceback);
PyErr_NormalizeException (&ptype, &pvalue, &ptraceback);