예제 #1
0
 def populate(self):
     """Populate sidebar.
     Do not reload playlists already displayed.
     """
     self._window.notifications_popup.push_loading()
     grilo.populate_playlists(self._offset, self._add_playlist_item)
     self._init = True
예제 #2
0
 def _populate(self, data=None):
     """Populate sidebar.
     Do not reload playlists already displayed.
     """
     self._window.notifications_popup.push_loading()
     grilo.populate_playlists(
         self._offset, self._add_playlist_item, -1, data)
     self._init = True
예제 #3
0
    def _get_playlists(self, callback):
        playlists = []

        def populate_callback(source, param, item, remaining=0, data=None):
            if item:
                playlists.append(item)
            else:
                callback(playlists)

        grilo.populate_playlists(0, populate_callback)
예제 #4
0
파일: mpris.py 프로젝트: rz6iox/gnome-music
    def _query_playlists(self, callback):
        playlists = []

        def populate_callback(source, param, item, remaining=0, data=None):
            if item:
                playlists.append(item)
            else:
                callback(playlists)

        grilo.populate_playlists(0, populate_callback)
예제 #5
0
 def _populate(self):
     grilo.populate_playlists(0, self._add_item)
예제 #6
0
 def populate(self):
     self._playlists_model.clear()
     grilo.populate_playlists(self._offset, self._add_playlist_item)
예제 #7
0
 def populate(self):
     grilo.populate_playlists(0, self._add_item)
예제 #8
0
 def populate(self):
     """Populate sidebar.
     Do not reload playlists already displayed.
     """
     grilo.populate_playlists(self._offset, self._add_playlist_item)
예제 #9
0
 def populate(self):
     self.playlists_model.clear()
     grilo.populate_playlists(self._offset, self._add_playlist_item)