[gnome-music/pl-artists-fixes] widgets: Select new playlist after editing is done



commit de9b30d95d13f579530c600eac858d11880df5b4
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Wed Apr 9 18:38:40 2014 +0800

    widgets: Select new playlist after editing is done
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724627

 gnomemusic/widgets.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index 0495756..beef88f 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -741,3 +741,7 @@ class PlaylistDialog():
             playlist.create_playlist(editable.get_text())
             new_iter = self.model.insert_before(_iter)
             self.model.set(new_iter, [0, 1], [editable.get_text(), False])
+            self.view.set_cursor(self.model.get_path(new_iter),
+                                 self.view.get_columns()[0], False)
+            self.view.row_activated(self.model.get_path(new_iter),
+                                    self.view.get_columns()[0])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]