[beast: 3/16] GXK: gxkcompat: provide replacements for deprecated functions



commit 90850d21e7b41f9b073fe19dfaf1f6e87c37b984
Author: Tim Janik <timj gnu org>
Date:   Wed Sep 6 03:32:34 2017 +0200

    GXK: gxkcompat: provide replacements for deprecated functions
    
    Signed-off-by: Tim Janik <timj gnu org>

 beast-gtk/gxk/Makefile.am  |    2 ++
 beast-gtk/gxk/gxkcompat.cc |   10 ++++++++++
 beast-gtk/gxk/gxkcompat.hh |    9 +++++++++
 3 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/beast-gtk/gxk/Makefile.am b/beast-gtk/gxk/Makefile.am
index adad7c4..fc7d15c 100644
--- a/beast-gtk/gxk/Makefile.am
+++ b/beast-gtk/gxk/Makefile.am
@@ -11,6 +11,7 @@ AM_CFLAGS   += $(GXK_CFLAGS)
 noinst_LIBRARIES = libgxk.a
 
 gxk_headers = $(strip \
+       gxkcompat.hh    \
        gxkled.hh       gxkcanvas.hh            gxkdialog.hh    gxkauxwidgets.hh \
        gxkstatusbar.hh gxkstock.hh             gxktexttools.hh gxklistwrapper.hh \
        gxkrackeditor.hh        gxkutils.hh             gxkpolygon.hh   gxkcellrendererpopup.hh \
@@ -21,6 +22,7 @@ gxk_headers = $(strip \
        gxk.hh \
 )
 gxk_c_sources = $(strip \
+       gxkcompat.cc    \
        gxkled.cc       gxkcanvas.cc            gxkdialog.cc    gxkauxwidgets.cc \
        gxkstatusbar.cc gxkstock.cc             gxktexttools.cc gxklistwrapper.cc \
        gxkrackeditor.cc        gxkutils.cc             gxkpolygon.cc   gxkcellrendererpopup.cc \
diff --git a/beast-gtk/gxk/gxkcompat.cc b/beast-gtk/gxk/gxkcompat.cc
new file mode 100644
index 0000000..4ff6ce4
--- /dev/null
+++ b/beast-gtk/gxk/gxkcompat.cc
@@ -0,0 +1,10 @@
+// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
+#include "gxkcompat.hh"
+
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
+GdkPixbuf*
+gxk_pixbuf_new_from_inline (int data_length, const guint8 *data, gboolean copy_pixels, GError **error)
+{
+  return gdk_pixbuf_new_from_inline (data_length, data, copy_pixels, error);
+}
diff --git a/beast-gtk/gxk/gxkcompat.hh b/beast-gtk/gxk/gxkcompat.hh
new file mode 100644
index 0000000..2b13f4d
--- /dev/null
+++ b/beast-gtk/gxk/gxkcompat.hh
@@ -0,0 +1,9 @@
+// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
+#ifndef __GXK_COMPAT_HH__
+#define __GXK_COMPAT_HH__
+
+#include        <gxk/gxkglobals.hh>
+
+GdkPixbuf* gxk_pixbuf_new_from_inline (int data_length, const guint8 *data, gboolean copy_pixels, GError 
**error);
+
+#endif /* __GXK_COMPAT_HH__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]