From 1518fe0a8f0a973f013e21c185f38111d69d6ac7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 8 Oct 2016 05:07:23 +0200 Subject: API: stylecontext: Remove state argument from getters The argument must always be the current state. --- gtk/gtkflowbox.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gtk/gtkflowbox.c') diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c index ecec916002..ed50e5f228 100644 --- a/gtk/gtkflowbox.c +++ b/gtk/gtkflowbox.c @@ -2712,7 +2712,6 @@ gtk_flow_box_render (GtkCssGadget *gadget, if (lines->len > 0) { - GtkStateFlags state; cairo_path_t *path; GtkBorder border; GdkRGBA border_color; @@ -2735,11 +2734,10 @@ gtk_flow_box_render (GtkCssGadget *gadget, cairo_append_path (cr, path); cairo_path_destroy (path); - state = gtk_style_context_get_state (context); G_GNUC_BEGIN_IGNORE_DEPRECATIONS - gtk_style_context_get_border_color (context, state, &border_color); + gtk_style_context_get_border_color (context, &border_color); G_GNUC_END_IGNORE_DEPRECATIONS - gtk_style_context_get_border (context, state, &border); + gtk_style_context_get_border (context, &border); cairo_set_line_width (cr, border.left); gdk_cairo_set_source_rgba (cr, &border_color); -- cgit v1.2.1