summaryrefslogtreecommitdiff
path: root/gtk/gtkflowbox.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-10-08 05:07:23 +0200
committerBenjamin Otte <otte@redhat.com>2016-10-16 18:18:58 +0200
commit1518fe0a8f0a973f013e21c185f38111d69d6ac7 (patch)
treef3fe2e9fcf10181b91a2d1627a086ca8fd81c485 /gtk/gtkflowbox.c
parent7ae008421aaf94d0b6968bcbf71fc3e1271181d8 (diff)
downloadgtk+-1518fe0a8f0a973f013e21c185f38111d69d6ac7.tar.gz
API: stylecontext: Remove state argument from getters
The argument must always be the current state.
Diffstat (limited to 'gtk/gtkflowbox.c')
-rw-r--r--gtk/gtkflowbox.c6
1 files changed, 2 insertions, 4 deletions
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);