[gnome-music/wip/mschraal/gtk4: 5/11] coverpaintable: flake fixes
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4: 5/11] coverpaintable: flake fixes
- Date: Tue, 28 Apr 2020 22:32:09 +0000 (UTC)
commit f5845907aeacbb959e209d0647d450a00c817325
Author: Marinus Schraal <mschraal gnome org>
Date: Wed Apr 29 00:19:22 2020 +0200
coverpaintable: flake fixes
gnomemusic/coverpaintable.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/coverpaintable.py b/gnomemusic/coverpaintable.py
index df86f021..ca12c350 100644
--- a/gnomemusic/coverpaintable.py
+++ b/gnomemusic/coverpaintable.py
@@ -33,7 +33,6 @@ class CoverPaintable(GObject.GObject, Gdk.Paintable):
rect = Graphene.Rect().init(0, 0, width, height)
snapshot.append_texture(pixbuf, rect)
-
size = min(width, height)
cr = snapshot.append_cairo(Graphene.Rect().init(
@@ -53,7 +52,7 @@ class CoverPaintable(GObject.GObject, Gdk.Paintable):
cr.set_source_rgb(1, 1, 1)
cr.fill()
cr.set_source_rgba(0, 0, 0, 0.3)
- #ctx.mask_surface(icon_surface, w / 3, h / 3)
+ # ctx.mask_surface(icon_surface, w / 3, h / 3)
cr.fill()
# Gdk.cairo_set_source_pixbuf(cr, pixbuf, 0, 0)
color = Gdk.RGBA(red=0.9, green=0.75, blue=0.75, alpha=.5)
@@ -62,7 +61,8 @@ class CoverPaintable(GObject.GObject, Gdk.Paintable):
rect = Graphene.Rect().init(0, 0, width, height)
pixbuf = theme.load_icon("content-loading-symbolic", w, 0)
- rect = Graphene.Rect().init(0 + border, 0 + border, width - border, height - border)
+ rect = Graphene.Rect().init(
+ 0 + border, 0 + border, width - border, height - border)
snapshot.append_texture(pixbuf, rect)
# snapshot.append_color(color, rect)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]