[gnome-music/wip/mschraal/art-fixes-regressions: 17/20] artstack: Fix variable name
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/art-fixes-regressions: 17/20] artstack: Fix variable name
- Date: Sun, 19 Sep 2021 10:35:41 +0000 (UTC)
commit 87fc75f8b8b1088d5eaa884234bf1f20cf1b8c67
Author: Marinus Schraal <mschraal gnome org>
Date: Tue Sep 7 00:54:18 2021 +0200
artstack: Fix variable name
_type was used where _art_type was supposed to be. This was in practice
not noticable, because it was quickly overwritten.
gnomemusic/widgets/artstack.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/widgets/artstack.py b/gnomemusic/widgets/artstack.py
index 0c0b9d379..d0a72e504 100644
--- a/gnomemusic/widgets/artstack.py
+++ b/gnomemusic/widgets/artstack.py
@@ -95,7 +95,7 @@ class ArtStack(Gtk.Stack):
:returns: The type of the default icon
:rtype: DefaultIcon.Type
"""
- return self._type
+ return self._art_type
@art_type.setter # type: ignore
def art_type(self, value: DefaultIcon.Type) -> None:
@@ -104,10 +104,10 @@ class ArtStack(Gtk.Stack):
:param DefaultIcon.Type value: The default icon type for the
stack
"""
- self._type = value
+ self._art_type = value
default_icon = DefaultIcon().get(
- self._type, self._size, self.props.scale_factor)
+ self._art_type, self._size, self.props.scale_factor)
self._on_cache_result(None, default_icon)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]