[gimp] pygimp: fix implicit enum casts
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] pygimp: fix implicit enum casts
- Date: Fri, 29 Apr 2016 19:53:07 +0000 (UTC)
commit 6746e502c2aa2e4341f816cfea259fd5de2e7a53
Author: Kristian Rietveld <kris loopnest org>
Date: Fri Apr 29 10:47:40 2016 +0200
pygimp: fix implicit enum casts
plug-ins/pygimp/gimpmodule.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/pygimp/gimpmodule.c b/plug-ins/pygimp/gimpmodule.c
index 3800e44..8d2edaf 100644
--- a/plug-ins/pygimp/gimpmodule.c
+++ b/plug-ins/pygimp/gimpmodule.c
@@ -1398,7 +1398,8 @@ pygimp_user_directory(PyObject *self, PyObject *args, PyObject *kwargs)
if (pyg_enum_get_value(GIMP_TYPE_USER_DIRECTORY, py_type, (gpointer)&type))
return NULL;
- user_dir = g_get_user_special_dir(type);
+ /* GimpUserDirectory and GUserDirectory are compatible */
+ user_dir = g_get_user_special_dir((GUserDirectory)type);
if (user_dir) {
ret = PyString_FromString(user_dir);
@@ -1685,7 +1686,7 @@ pygimp_export_image (PyObject *self, PyObject *args, PyObject *kwargs)
PyGimpDrawable *drw = NULL;
gchar *format_name = NULL;
unsigned int capabilities = -1;
- GimpExportCapabilities result;
+ GimpExportReturn result;
gint32 img_id;
gint32 drw_id;
PyObject *return_values;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]