summaryrefslogtreecommitdiff
path: root/src/CheckerboardLayout.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:34:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:34:32 +0200
commit49120f48474fc8fdc2448c75d961bc238213cfac (patch)
tree05bcdb95d65a807cf0f1ffffd066c09074b5cf56 /src/CheckerboardLayout.vala
parent2492891f112caac6076ce49721d9d5d78a152c3a (diff)
New upstream version 0.28.2upstream/0.28.2
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();
}