[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:06:49 +0000 (UTC)
commit e3ddd2084cabece016b5eb6a4fa0a70f940fd9a3
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 crashes. Indeed, selection is now a SidebarRow
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]