[gnome-music/wip/jfelder/playlistview-fix-rename] playlistview: Fix playlist renaming
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/playlistview-fix-rename] playlistview: Fix playlist renaming
- Date: Fri, 30 Nov 2018 19:04:03 +0000 (UTC)
commit 517eb2f3cb205a2775a673b056daf7d16cfef61d
Author: Jean Felder <jfelder src gnome org>
Date: Fri Nov 30 16:58:41 2018 +0100
playlistview: Fix playlist renaming
Since the introduction of SidebarRow (commit a3ea4d04), playlist
renaming operation renaming crashes. Indeed, selection is now a
SidebaRow instead of a GtkBox.
Update the correct GObject property to fix the issue.
Closes: #248
gnomemusic/views/playlistview.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/views/playlistview.py b/gnomemusic/views/playlistview.py
index 3b7f307f..28aabfab 100644
--- a/gnomemusic/views/playlistview.py
+++ b/gnomemusic/views/playlistview.py
@@ -744,7 +744,7 @@ class PlaylistView(BaseView):
@log
def _on_playlist_renamed(self, arguments, new_name):
selection = self._sidebar.get_selected_row()
- selection.get_child().props.label = new_name
+ selection.props.text = new_name
pl_torename = selection.playlist
pl_torename.set_title(new_name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]