[gdk-pixbuf] Add deprecation attributes to deprecated functions
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] Add deprecation attributes to deprecated functions
- Date: Wed, 12 Oct 2011 22:12:39 +0000 (UTC)
commit a5d4801f9e7934f25d6daa0e57be317d52b3439a
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 12 18:03:03 2011 -0400
Add deprecation attributes to deprecated functions
configure.ac | 2 +-
gdk-pixbuf/gdk-pixbuf-animation.h | 2 ++
gdk-pixbuf/gdk-pixbuf-core.h | 2 ++
gdk-pixbuf/gdk-pixbuf-features.h.in | 2 ++
4 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 89be0e9..ed83b92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,7 +26,7 @@ m4_define([gdk_pixbuf_binary_version], [2.10.0])
# required versions of other packages
-m4_define([glib_required_version], [2.27.2])
+m4_define([glib_required_version], [2.31.0])
AC_INIT([gdk-pixbuf], [gdk_pixbuf_version],
[http://bugzilla.gnome.org/enter_bug.cgi?product=gdk-pixbuf],
diff --git a/gdk-pixbuf/gdk-pixbuf-animation.h b/gdk-pixbuf/gdk-pixbuf-animation.h
index e32a242..65b34d9 100644
--- a/gdk-pixbuf/gdk-pixbuf-animation.h
+++ b/gdk-pixbuf/gdk-pixbuf-animation.h
@@ -72,7 +72,9 @@ GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *fi
GError **error);
#ifndef GDK_PIXBUF_DISABLE_DEPRECATED
+G_DEPRECATED_FOR(g_object_ref)
GdkPixbufAnimation *gdk_pixbuf_animation_ref (GdkPixbufAnimation *animation);
+G_DEPRECATED_FOR(g_object_unref)
void gdk_pixbuf_animation_unref (GdkPixbufAnimation *animation);
#endif
diff --git a/gdk-pixbuf/gdk-pixbuf-core.h b/gdk-pixbuf/gdk-pixbuf-core.h
index b2fdc33..0163102 100644
--- a/gdk-pixbuf/gdk-pixbuf-core.h
+++ b/gdk-pixbuf/gdk-pixbuf-core.h
@@ -236,7 +236,9 @@ GType gdk_pixbuf_get_type (void) G_GNUC_CONST;
/* Reference counting */
#ifndef GDK_PIXBUF_DISABLE_DEPRECATED
+G_DEPRECATED_FOR(g_object_ref)
GdkPixbuf *gdk_pixbuf_ref (GdkPixbuf *pixbuf);
+G_DEPRECATED_FOR(g_object_unref)
void gdk_pixbuf_unref (GdkPixbuf *pixbuf);
#endif
diff --git a/gdk-pixbuf/gdk-pixbuf-features.h.in b/gdk-pixbuf/gdk-pixbuf-features.h.in
index 721795a..9c31aa3 100644
--- a/gdk-pixbuf/gdk-pixbuf-features.h.in
+++ b/gdk-pixbuf/gdk-pixbuf-features.h.in
@@ -5,6 +5,8 @@
#ifndef GDK_PIXBUF_FEATURES_H
#define GDK_PIXBUF_FEATURES_H 1
+#include <glib.h>
+
/**
* SECTION:initialization_versions
* @Short_description:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]