[gnome-music/wip/merge: 109/343] window: python has different way to handle arrays



commit 5dcf3b4d747af07c069def7e71e210a1084668c7
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Jul 15 16:21:54 2013 +0200

    window: python has different way to handle arrays

 gnomemusic/window.py |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 9fb2c3e..f76ddda 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -80,11 +80,7 @@ class Window(Gtk.ApplicationWindow):
             self.views.append(Views.Playlist(self.toolbar, self.selectionToolbar, self.player))
 
             for i in self.views:
-                self._stack.add_titled(
-                    self.views[i],
-                    self.views[i].title,
-                    self.views[i].title
-                )
+                self._stack.add_titled(i, i.title, i.title)
 
             self._onNotifyModelId = self._stack.connect("notify::visible-child", self._onNotifyMode)
             self.connect("destroy", self._stack.disconnect(self._onNotifyModelId))


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