[gnome-music/wip/mschraal/rework-art-widget: 12/26] artstack: Rework var naming
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/rework-art-widget: 12/26] artstack: Rework var naming
- Date: Thu, 7 Apr 2022 22:46:08 +0000 (UTC)
commit 5c0a0f9d1850dcd456d2fe9d10378fec7702c521
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Mar 17 16:55:46 2022 +0100
artstack: Rework var naming
gnomemusic/widgets/artstack.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gnomemusic/widgets/artstack.py b/gnomemusic/widgets/artstack.py
index 1784bc160..eaa12a65b 100644
--- a/gnomemusic/widgets/artstack.py
+++ b/gnomemusic/widgets/artstack.py
@@ -68,10 +68,10 @@ class ArtStack(Gtk.Stack):
self._size = size
self._thumbnail_id = 0
- self._cover_a = Gtk.Image()
- self._cover_a.props.visible = True
+ self._cover = Gtk.Image()
+ self._cover.props.visible = True
- self.add_named(self._cover_a, "A")
+ self.add_named(self._cover, "A")
self.props.size = size
@@ -123,7 +123,7 @@ class ArtStack(Gtk.Stack):
default_icon = DefaultIcon(self).get(self._art_type, self._size)
- self._cover_a.props.paintable = default_icon
+ self._cover.props.paintable = default_icon
@GObject.Property(type=object, default=None)
def coreobject(self) -> Optional[CoreObject]:
@@ -155,7 +155,7 @@ class ArtStack(Gtk.Stack):
pspec: GObject.ParamSpecBoolean) -> None:
default_icon = DefaultIcon(self).get(self._art_type, self._size)
- self._cover_a.props.paintable = default_icon
+ self._cover.props.paintable = default_icon
def _on_thumbnail_changed(
self, coreobject: CoreObject,
@@ -169,7 +169,7 @@ class ArtStack(Gtk.Stack):
def _on_cache_result(
self, cache: ArtCache, paintable: Gtk.Paintable) -> None:
- self._cover_a.props.paintable = paintable
+ self._cover.props.paintable = paintable
def _on_destroy(self, widget: ArtStack) -> None:
# If the stack is destroyed while the art is updated, an error
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]