[gdk-pixbuf/deprecated-timeval-stable: 3/8] Disable deprecation warnings for GTimeVal
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf/deprecated-timeval-stable: 3/8] Disable deprecation warnings for GTimeVal
- Date: Sun, 8 Sep 2019 17:17:31 +0000 (UTC)
commit da7c2c881b91b3360c051e3b2a646de7efae773b
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Jul 29 18:43:23 2019 +0100
Disable deprecation warnings for GTimeVal
Common GdkPixbufAnimation implementations need to avoid warnings caused
by the recent deprecation of GTimeVal in GLib 2.62.
gdk-pixbuf/gdk-pixbuf-scaled-anim.c | 4 ++++
gdk-pixbuf/gdk-pixbuf-simple-anim.c | 1 +
2 files changed, 5 insertions(+)
---
diff --git a/gdk-pixbuf/gdk-pixbuf-scaled-anim.c b/gdk-pixbuf/gdk-pixbuf-scaled-anim.c
index 269b5e26f..462fac606 100644
--- a/gdk-pixbuf/gdk-pixbuf-scaled-anim.c
+++ b/gdk-pixbuf/gdk-pixbuf-scaled-anim.c
@@ -172,6 +172,7 @@ get_size (GdkPixbufAnimation *anim,
*height = (int)(*height * scaled->yscale + .5);
}
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GdkPixbufAnimationIter *
get_iter (GdkPixbufAnimation *anim,
const GTimeVal *start_time)
@@ -186,6 +187,7 @@ get_iter (GdkPixbufAnimation *anim,
return (GdkPixbufAnimationIter*)iter;
}
+G_GNUC_END_IGNORE_DEPRECATIONS
static void
gdk_pixbuf_scaled_anim_class_init (GdkPixbufScaledAnimClass *klass)
@@ -242,6 +244,7 @@ on_currently_loading_frame (GdkPixbufAnimationIter *iter)
return gdk_pixbuf_animation_iter_on_currently_loading_frame (scaled->iter);
}
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static gboolean
advance (GdkPixbufAnimationIter *iter,
const GTimeVal *current_time)
@@ -250,6 +253,7 @@ advance (GdkPixbufAnimationIter *iter,
return gdk_pixbuf_animation_iter_advance (scaled->iter, current_time);
}
+G_GNUC_END_IGNORE_DEPRECATIONS
static void
gdk_pixbuf_scaled_anim_iter_finalize (GObject *object)
diff --git a/gdk-pixbuf/gdk-pixbuf-simple-anim.c b/gdk-pixbuf/gdk-pixbuf-simple-anim.c
index 9f6ce4e2f..c932ebd8f 100644
--- a/gdk-pixbuf/gdk-pixbuf-simple-anim.c
+++ b/gdk-pixbuf/gdk-pixbuf-simple-anim.c
@@ -24,6 +24,7 @@
*/
#include "config.h"
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
#include <glib.h>
#define GDK_PIXBUF_C_COMPILATION
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]