[gnome-music] songwidget: Match show_song_number value on DnD widget
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] songwidget: Match show_song_number value on DnD widget
- Date: Tue, 23 Feb 2021 13:45:33 +0000 (UTC)
commit 7d3e49fcb65ab069359aa0c53117db66408b8ac0
Author: Yann DELABY <y delaby zaclys net>
Date: Tue Feb 23 14:02:13 2021 +0100
songwidget: Match show_song_number value on DnD widget
When drag'n dropping a song, a SongWidget row is created for dragging
the song to the desired place. This created song row should have the
same appearance than the original and the song number should not be
shown in non-dynamic playlists.
This is assured by matching the show_song_number value from the
original widget.
gnomemusic/widgets/songwidget.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gnomemusic/widgets/songwidget.py b/gnomemusic/widgets/songwidget.py
index c90861d9e..73b35e1a7 100644
--- a/gnomemusic/widgets/songwidget.py
+++ b/gnomemusic/widgets/songwidget.py
@@ -169,6 +169,8 @@ class SongWidget(Gtk.EventBox):
self._drag_widget.set_size_request(allocation.width, allocation.height)
drag_row = SongWidget(self.props.coresong)
+ drag_row.props.show_song_number = self.props.show_song_number
+
self._drag_widget.add(drag_row)
self._drag_widget.drag_highlight_row(drag_row.get_parent())
self._drag_widget.props.visible = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]