[gimp] pygimp: disable deprecation warnings for gimpmodule, drawable, tile
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] pygimp: disable deprecation warnings for gimpmodule, drawable, tile
- Date: Sun, 1 May 2016 19:51:13 +0000 (UTC)
commit 596d5f74351d450ae2206c4ac647c66979609098
Author: Kristian Rietveld <kris loopnest org>
Date: Sun May 1 21:41:46 2016 +0200
pygimp: disable deprecation warnings for gimpmodule, drawable, tile
We need to bind deprecated methods and cannot just implement these using
the replacements. So therefore, do not disturb us with deprecation
warnings for these files.
plug-ins/pygimp/gimpmodule.c | 1 +
plug-ins/pygimp/pygimp-drawable.c | 1 +
plug-ins/pygimp/pygimp-tile.c | 2 ++
3 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/pygimp/gimpmodule.c b/plug-ins/pygimp/gimpmodule.c
index 5b469de..f6aa874 100644
--- a/plug-ins/pygimp/gimpmodule.c
+++ b/plug-ins/pygimp/gimpmodule.c
@@ -21,6 +21,7 @@
#endif
#undef GIMP_DISABLE_DEPRECATED
+#define GIMP_DISABLE_DEPRECATION_WARNINGS
#include "pygimp.h"
#include "pygimpcolor-api.h"
diff --git a/plug-ins/pygimp/pygimp-drawable.c b/plug-ins/pygimp/pygimp-drawable.c
index 494902e..b5ab5a8 100644
--- a/plug-ins/pygimp/pygimp-drawable.c
+++ b/plug-ins/pygimp/pygimp-drawable.c
@@ -23,6 +23,7 @@
#define NO_IMPORT_PYGOBJECT
#include <pygobject.h>
+#define GIMP_DISABLE_DEPRECATION_WARNINGS
#include "pygimp.h"
#define NO_IMPORT_PYGIMPCOLOR
diff --git a/plug-ins/pygimp/pygimp-tile.c b/plug-ins/pygimp/pygimp-tile.c
index cb71f24..f1dd753 100644
--- a/plug-ins/pygimp/pygimp-tile.c
+++ b/plug-ins/pygimp/pygimp-tile.c
@@ -20,6 +20,8 @@
# include <config.h>
#endif
+#define GIMP_DISABLE_DEPRECATION_WARNINGS
+
#include "pygimp.h"
#define NO_IMPORT_PYGIMPCOLOR
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]