diff options
author | Debarshi Ray <debarshir@gnome.org> | 2018-10-06 19:02:14 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2018-10-06 19:28:21 +0200 |
commit | 039eff81546b1076bcad5eab5ee6bc37e702e0a5 (patch) | |
tree | e94811c8c7588334347fbd7d4207a189599d02ff | |
parent | dbfdc526f00025f5b439438c22361026494aded2 (diff) | |
download | libgd-039eff81546b1076bcad5eab5ee6bc37e702e0a5.tar.gz |
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
-rw-r--r-- | libgd/gd-main-icon-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |