[libgd] toggle-pixbuf-renderer: Ignore deprecation warnings



commit 3afb334ed1d87580df0adf34c8ed6c31e5d3d667
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue May 9 19:00:02 2017 +0200

    toggle-pixbuf-renderer: Ignore deprecation warnings
    
    It relies on the deprecated gtk_paint_spinner, and it cannot be
    replaced with gtk_renderer_activity. Let's disable the deprecation
    instead.
    
    For what it is worth, this is also what GtkCellRendererSpinner does.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782023

 libgd/gd-toggle-pixbuf-renderer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgd/gd-toggle-pixbuf-renderer.c b/libgd/gd-toggle-pixbuf-renderer.c
index 978022b..fa23cb6 100644
--- a/libgd/gd-toggle-pixbuf-renderer.c
+++ b/libgd/gd-toggle-pixbuf-renderer.c
@@ -104,6 +104,7 @@ render_activity (GdTogglePixbufRenderer *self,
   x = cell_area->x + (cell_area->width / 2) - (width / 2) - xpad;
   y = cell_area->y + (cell_area->height / 2) - (height / 2) - ypad;
 
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
   gtk_paint_spinner (gtk_widget_get_style (widget),
                      cr,
                      GTK_STATE_FLAG_ACTIVE,
@@ -112,6 +113,7 @@ render_activity (GdTogglePixbufRenderer *self,
                      (guint) self->priv->pulse - 1,
                      x, y,
                      width, height);
+  G_GNUC_END_IGNORE_DEPRECATIONS;
 }
 
 static void


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