[gnome-music/wip/jfelder-artistsview-selection-crash] artistsview: Correctly access artisttile on toggle_selection
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder-artistsview-selection-crash] artistsview: Correctly access artisttile on toggle_selection
- Date: Thu, 9 Jan 2020 19:04:36 +0000 (UTC)
commit 77a354da456b94b262f80341d7839fbc96ab35d9
Author: Jean Felder <jfelder src gnome org>
Date: Thu Jan 9 20:01:00 2020 +0100
artistsview: Correctly access artisttile on toggle_selection
This is a regression introduced by commit
74dc676d50dc049827beec308dbcfb133891a076. ArtistTile now inherits
from a GtkListBoxRow, there is no need to call the `get_child` method
to access it.
gnomemusic/views/artistsview.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gnomemusic/views/artistsview.py b/gnomemusic/views/artistsview.py
index af4348fb..05afb8b9 100644
--- a/gnomemusic/views/artistsview.py
+++ b/gnomemusic/views/artistsview.py
@@ -200,8 +200,7 @@ class ArtistsView(BaseView):
def _toggle_all_selection(self, selected):
def toggle_selection(child):
- tile = child.get_child()
- tile.props.selected = selected
+ child.props.selected = selected
self._sidebar.foreach(toggle_selection)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]