Commit e6b2aafa authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

tasklist: avoid deprecated gtk_style_context_get_background_color

parent ab9d5ff8
......@@ -3988,16 +3988,13 @@ wnck_task_draw (GtkWidget *widget,
gtk_widget_style_get (tasklist_widget, "fade-overlay-rect", &overlay_rect, NULL);
if (overlay_rect)
GdkRGBA bg_color;
gtk_style_context_save (context);
gtk_style_context_set_state (context, GTK_STATE_FLAG_SELECTED);
gtk_style_context_get_background_color (context, GTK_STATE_FLAG_SELECTED, &bg_color);
gtk_style_context_restore (context);
/* Draw a rectangle with selected background color */
gdk_cairo_set_source_rgba (cr, &bg_color);
cairo_paint (cr);
gtk_render_background (context, cr, 0, 0, width, height);
gtk_style_context_restore (context);
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