Commit 23d5293d authored by Matthias Clasen's avatar Matthias Clasen

dnd: Avoid GTK+ warnings

GTK+ warns nowadays if the state passed to gtk_style_context_get_*
does not match the state of the context. Avoid this by using the
state of the context.
parent b2c94a56
......@@ -97,7 +97,7 @@ on_drag_icon_draw (GtkWidget *widget, cairo_t *cr)
h = alloc.height;
h2 = h/2.0;
gtk_style_context_get_background_color (context, GTK_STATE_NORMAL, &bg);
gtk_style_context_get_background_color (context, gtk_style_context_get_state (context), &bg);
gradient = cairo_pattern_create_linear (x, y, x, y+h);
cairo_pattern_add_color_stop_rgba (gradient, 0,,,, 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment