[libgd] main-icon-view: Ignore deprecation warnings



commit 039eff81546b1076bcad5eab5ee6bc37e702e0a5
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Oct 6 19:02:14 2018 +0200

    main-icon-view: Ignore deprecation warnings
    
    The code is trying to draw the border around a rubberband selection,
    that's represented by a Cairo path. It's not necessarily a simple
    rectangle, and, therefore, cannot be replaced by gtk_render_frame.
    Let's disable the deprecation instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742910

 libgd/gd-main-icon-view.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/libgd/gd-main-icon-view.c b/libgd/gd-main-icon-view.c
index 699d20d..95bdb55 100644
--- a/libgd/gd-main-icon-view.c
+++ b/libgd/gd-main-icon-view.c
@@ -309,9 +309,13 @@ gd_main_icon_view_draw (GtkWidget *widget,
          cairo_path_destroy (path);
 
          state = gtk_widget_get_state_flags (widget);
+
+         G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
          gtk_style_context_get_border_color (context,
                                              state,
                                              &border_color);
+         G_GNUC_END_IGNORE_DEPRECATIONS;
+
          gtk_style_context_get_border (context, state,
                                        &border);
 


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