rind: Make use of the new information in "new-playlist"
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
ad9828c494
commit
8781ab1b3a
|
@ -107,14 +107,13 @@ class ManagerModel(GObject.GObject, Gtk.TreeModel):
|
|||
self.row_changed(self.get_path(iter), iter)
|
||||
|
||||
def on_new_playlist(self, plist, index, first):
|
||||
iter = self.playlist_iter(plist)
|
||||
if iter != None:
|
||||
self.row_inserted(self.get_path(iter), iter)
|
||||
parent = self.iter_parent(iter)
|
||||
if self.iter_n_children(parent) == 1:
|
||||
self.row_has_child_toggled(self.get_path(parent), parent)
|
||||
if isinstance(plist, curds.LibraryPlaylist):
|
||||
Treeview.expand_to_path(self.get_path(parent))
|
||||
parent = self.playlist_iter(curds.PlaylistManager.parent(plist))
|
||||
child = self.iter_nth_child(parent, index)
|
||||
self.row_inserted(self.get_path(child), child)
|
||||
if parent != None and first == True:
|
||||
self.row_has_child_toggled(self.get_path(parent), parent)
|
||||
if isinstance(plist, curds.LibraryPlaylist):
|
||||
Treeview.expand_to_path(self.get_path(child))
|
||||
|
||||
def on_selection_changed(self, selection):
|
||||
(model, rows) = selection.get_selected_rows()
|
||||
|
|
Loading…
Reference in New Issue