summaryrefslogtreecommitdiff
path: root/src/CheckerboardLayout.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:43:08 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:43:08 +0200
commit2b3f22361da0c1d8e6ce70d71352821758186db7 (patch)
tree5d10633b47369b3aa52a05bf889ede0dbe5ee108 /src/CheckerboardLayout.vala
parent211da5fc3048ca2b6ccee2166b0aaaade55cb84f (diff)
parentdc6c76eb04dfe3d4262a1806808f0bc0bf523238 (diff)
Merge branch 'feature/upstream' into develop
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();
}