[gnome-music] mpris: Use filter instead of the view model



commit da1bc5421e788bd16b458f35016cfbb8cd8ab0c3
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Mon Sep 16 20:27:44 2013 +0800

    mpris: Use filter instead of the view model
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708103

 gnomemusic/mpris.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index 53cdd78..801f498 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -207,7 +207,7 @@ class MediaPlayer2Service(dbus.service.Object):
         elif self.first_song_handler == 0:
             window = self.app.get_active_window()
             window._stack.set_visible_child(window.views[2])
-            model = window.views[2]._model
+            model = window.views[2].filter
             if model.iter_n_children(None):
                 _iter = model.get_iter_first()
                 self._play_first_song(model, model.get_path(_iter), _iter)


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