diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:34:32 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:34:32 +0200 |
commit | 49120f48474fc8fdc2448c75d961bc238213cfac (patch) | |
tree | 05bcdb95d65a807cf0f1ffffd066c09074b5cf56 /src/CheckerboardLayout.vala | |
parent | 2492891f112caac6076ce49721d9d5d78a152c3a (diff) |
New upstream version 0.28.2upstream/0.28.2
Diffstat (limited to 'src/CheckerboardLayout.vala')
-rw-r--r-- | src/CheckerboardLayout.vala | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/CheckerboardLayout.vala b/src/CheckerboardLayout.vala index 5a672f3..d508617 100644 --- a/src/CheckerboardLayout.vala +++ b/src/CheckerboardLayout.vala @@ -563,12 +563,7 @@ public abstract class CheckerboardItem : ThumbnailView { } protected virtual void paint_image(Cairo.Context ctx, Gdk.Pixbuf pixbuf, Gdk.Point origin) { - if (pixbuf.get_has_alpha()) { - ctx.rectangle(origin.x, origin.y, pixbuf.get_width(), pixbuf.get_height()); - ctx.fill(); - } - Gdk.cairo_set_source_pixbuf(ctx, pixbuf, origin.x, origin.y); - ctx.paint(); + paint_pixmap_with_background(ctx, pixbuf, origin.x, origin.y); } private int get_selection_border_width(int scale) { @@ -2015,6 +2010,7 @@ public class CheckerboardLayout : Gtk.DrawingArea { } private void on_colors_changed() { + invalidate_transparent_background(); override_background_color(Gtk.StateFlags.NORMAL, Config.Facade.get_instance().get_bg_color()); set_colors(); } |