summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkdisplaypanel.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-12-29 14:46:46 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-12-29 14:47:47 (GMT)
commit5c4811a65eedda9dd95137337dc6304eb8cd051d (patch)
treec2e1e3ef226815c1ded30671590642436d75618a /src/gtkext/gtkdisplaypanel.c
parent190f66ab3a2c8bdf2f56b2f590afe49461e6cf24 (diff)
Fixed compilation warnings by replacing GTK deprecated functions in display panels.
Diffstat (limited to 'src/gtkext/gtkdisplaypanel.c')
-rw-r--r--src/gtkext/gtkdisplaypanel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gtkext/gtkdisplaypanel.c b/src/gtkext/gtkdisplaypanel.c
index 620a1b1..e6efba6 100644
--- a/src/gtkext/gtkdisplaypanel.c
+++ b/src/gtkext/gtkdisplaypanel.c
@@ -791,7 +791,9 @@ void gtk_display_panel_draw_border(GtkDisplayPanel *panel, cairo_t *cr)
gtk_style_context_add_class(context, GTK_STYLE_CLASS_FRAME);
- gtk_style_context_get_border_color(context, GTK_STATE_FLAG_ACTIVE, &color);
+ gtk_style_context_get(gtk_widget_get_style_context(widget),
+ gtk_widget_get_state_flags(widget),
+ GTK_STYLE_PROPERTY_COLOR, &color, NULL);
cairo_set_source_rgba(cr, color.red, color.green, color.blue, color.alpha);