summaryrefslogtreecommitdiff
path: root/src/CheckerboardLayout.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:35:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:35:32 +0200
commite230b6f78546827521107be23797048482c8b193 (patch)
tree948c1e77382c484819ea399bba4edcdc19cc6bf0 /src/CheckerboardLayout.vala
parent211da5fc3048ca2b6ccee2166b0aaaade55cb84f (diff)
parent49120f48474fc8fdc2448c75d961bc238213cfac (diff)
Update upstream source from tag 'upstream/0.28.2'
Update to upstream version '0.28.2' with Debian dir 811236a8e9a1308bf427065dcb6270419ff4f965
Diffstat (limited to 'src/CheckerboardLayout.vala')
-rw-r--r--src/CheckerboardLayout.vala8
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();
}