[gdk-pixbuf] lib: Add deprecation guards around gdk_pixbuf_new_from_inline()



commit 9eb95f68e859d47eb97b7d1b28360910bfc997b0
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Oct 21 19:49:12 2014 +0200

    lib: Add deprecation guards around gdk_pixbuf_new_from_inline()

 gdk-pixbuf/gdk-pixbuf-core.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gdk-pixbuf/gdk-pixbuf-core.h b/gdk-pixbuf/gdk-pixbuf-core.h
index b131255..c4726d1 100644
--- a/gdk-pixbuf/gdk-pixbuf-core.h
+++ b/gdk-pixbuf/gdk-pixbuf-core.h
@@ -308,11 +308,15 @@ GdkPixbuf *gdk_pixbuf_new_from_bytes (GBytes *data,
                                      int rowstride);
  
 GdkPixbuf *gdk_pixbuf_new_from_xpm_data (const char **data);
+
+#ifndef GDK_PIXBUF_DISABLE_DEPRECATED
+G_DEPRECATED
 GdkPixbuf* gdk_pixbuf_new_from_inline  (gint          data_length,
                                         const guint8 *data,
                                         gboolean      copy_pixels,
                                         GError      **error);
-       
+#endif
+
 /* Mutations */
 void       gdk_pixbuf_fill              (GdkPixbuf    *pixbuf,
                                          guint32       pixel);


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