tile-preview: Use gdk_cairo_set_source_rgba()
gdk_cairo_set_source_rgba() is a convenience function which was added to GTK+-3.0 after the port to GtkStyleContext, so we ended up using cairo_set_source_rgba() instead. Save a couple of lines ...
This commit is contained in:
parent
c573523c4d
commit
a2cb38b382
@ -55,11 +55,7 @@ meta_tile_preview_draw (GtkWidget *widget,
|
||||
if (preview->has_alpha)
|
||||
{
|
||||
/* Fill the preview area with a transparent color */
|
||||
cairo_set_source_rgba (cr,
|
||||
preview->preview_color->red,
|
||||
preview->preview_color->green,
|
||||
preview->preview_color->blue,
|
||||
preview->preview_color->alpha);
|
||||
gdk_cairo_set_source_rgba (cr, preview->preview_color);
|
||||
|
||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||
cairo_paint (cr);
|
||||
|
Loading…
Reference in New Issue
Block a user