libgimpwidgets, app: use GdkRGBA instead of GdkColor for cell backgrounds

This commit is contained in:
Michael Natterer
2016-11-01 12:50:10 +01:00
parent a6948b4ba5
commit a5b5eaebd3
2 changed files with 8 additions and 16 deletions

View File

@ -380,19 +380,17 @@ gimp_cell_renderer_toggle_render (GtkCellRenderer *cell,
if (background_set)
{
cairo_t *cr = gdk_cairo_create (window);
GdkColor *color;
GdkRGBA *color;
g_object_get (cell,
"cell-background-gdk", &color,
"cell-background-rgba", &color,
NULL);
gdk_cairo_rectangle (cr, background_area);
gdk_cairo_set_source_color (cr, color);
gdk_cairo_set_source_rgba (cr, color);
cairo_fill (cr);
gdk_color_free (color);
cairo_destroy (cr);
gdk_rgba_free (color);
}
}