[gnome-music/wip/mschraal/albumwidget-corealbum-property] albumwidget: Drop redundant function argument
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/albumwidget-corealbum-property] albumwidget: Drop redundant function argument
- Date: Thu, 5 Aug 2021 11:34:36 +0000 (UTC)
commit d7391b41711dd164114f7e87f0ba6803bdc05894
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Aug 5 11:02:20 2021 +0200
albumwidget: Drop redundant function argument
Drop corealbum argument for _set_composer_label, it comes as an instance
wide variable.
gnomemusic/widgets/albumwidget.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/widgets/albumwidget.py b/gnomemusic/widgets/albumwidget.py
index 2455cb71d..519786828 100644
--- a/gnomemusic/widgets/albumwidget.py
+++ b/gnomemusic/widgets/albumwidget.py
@@ -118,7 +118,7 @@ class AlbumWidget(Gtk.Box):
self._released_info_label.props.label = self._corealbum.props.year
- self._set_composer_label(corealbum)
+ self._set_composer_label()
self._album_model = self._corealbum.props.model
self._model_signal_id = self._album_model.connect_after(
@@ -152,8 +152,8 @@ class AlbumWidget(Gtk.Box):
discbox = self._disc_list_box.get_row_at_index(i)
discbox.props.show_disc_label = True
- def _set_composer_label(self, corealbum):
- composer = corealbum.props.composer
+ def _set_composer_label(self) -> None:
+ composer = self._corealbum.props.composer
show = False
if composer:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]