[gnome-music/cherry-pick-e3ddd208] playlistview: Fix playlist renaming



commit 9cb90f32221925ebd14e62eb969ced1249fb05d5
Author: Jean Felder <jfelder src gnome org>
Date:   Fri Nov 30 15:58:41 2018 +0000

    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
    
    
    (cherry picked from commit e3ddd2084cabece016b5eb6a4fa0a70f940fd9a3)

 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 e285431f..d2a8b5c2 100644
--- a/gnomemusic/views/playlistview.py
+++ b/gnomemusic/views/playlistview.py
@@ -745,7 +745,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]