diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-10-12 18:03:03 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-10-12 18:07:28 -0400 |
commit | a5d4801f9e7934f25d6daa0e57be317d52b3439a (patch) | |
tree | 475feec778fffc3216783f57692a288528cf3faa | |
parent | 6136f4e8e79ad4501ec43166c27aaa7541585a04 (diff) | |
download | gdk-pixbuf-a5d4801f9e7934f25d6daa0e57be317d52b3439a.tar.gz |
Add deprecation attributes to deprecated functions
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-animation.h | 2 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-core.h | 2 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-features.h.in | 2 |
4 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 89be0e99e..ed83b921d 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 e32a24260..65b34d9cb 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 b2fdc33fe..016310247 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 721795af3..9c31aa3b5 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: |