Example #1
0
 def _on_map_albums(self, widget, force=False):
     """
         Load on map
         @param widget as Gtk.Grid
         @param force as bool
     """
     self._menu.hide()
     self._jump_button.show()
     self._jump_button.set_tooltip_markup(
                                   "<b>%s</b> - " %
                                   escape(
                                     Lp().player.current_track.artists
                                     ) +
                                   Lp().player.current_track.name)
     if self._current is None:
         self._current = self._get_current()
     Lp().settings.set_value('infoswitch',
                             GLib.Variant('s', 'albums'))
     view = widget.get_child_at(0, 0)
     if view is None:
         view = CurrentArtistAlbumsView()
         view.set_property('expand', True)
         view.show()
         widget.add(view)
     t = Thread(target=view.populate,
                args=(self._current[0], self._current[1]))
     t.daemon = True
     t.start()
Example #2
0
 def _on_map_albums(self, widget):
     """
         Load on map
         @param widget as Gtk.Bin
     """
     Lp.settings.set_value('infoswitch',
                           GLib.Variant('s', 'albums'))
     view = CurrentArtistAlbumsView(self._artist_id)
     view.set_property('expand', True)
     view.show()
     child = widget.get_child_at(0, 0)
     if child is not None:
         child.destroy()
     widget.add(view)
     t = Thread(target=view.populate)
     t.daemon = True
     t.start()
Example #3
0
 def _on_map_albums(self, widget):
     """
         Load on map
         @param widget as Gtk.Grid
     """
     self.__jump_button.show()
     if self.__current_track.id is None:
         self.__current_track = Lp().player.current_track
     Lp().settings.set_value('infoswitch',
                             GLib.Variant('s', 'albums'))
     view = widget.get_child_at(0, 0)
     if view is None:
         view = CurrentArtistAlbumsView()
         view.set_property('expand', True)
         view.show()
         widget.add(view)
     t = Thread(target=view.populate, args=(self.__current_track,))
     t.daemon = True
     t.start()
Example #4
0
 def _on_map_albums(self, widget, force=False):
     """
         Load on map
         @param widget as Gtk.Bin
         @param force as bool
     """
     if not self.is_visible():
         return
     Lp.settings.set_value('infoswitch',
                           GLib.Variant('s', 'albums'))
     view = widget.get_child_at(0, 0)
     if view is None:
         view = CurrentArtistAlbumsView(self._artist_id)
         view.set_property('expand', True)
         view.show()
         widget.add(view)
     t = Thread(target=view.populate)
     t.daemon = True
     t.start()
Example #5
0
 def _on_map_albums(self, widget, force=False):
     """
         Load on map
         @param widget as Gtk.Bin
         @param force as bool
     """
     self._menu.hide()
     if self._current is None:
         self._current = self._get_current()
     Lp.settings.set_value("infoswitch", GLib.Variant("s", "albums"))
     view = widget.get_child_at(0, 0)
     if view is None:
         view = CurrentArtistAlbumsView()
         view.set_property("expand", True)
         view.show()
         widget.add(view)
     t = Thread(target=view.populate, args=(self._current[0], self._current[1]))
     t.daemon = True
     t.start()
Example #6
0
 def _on_map_albums(self, widget):
     """
         Load on map
         @param widget as Gtk.Grid
     """
     self.__jump_button.show()
     if self.__current_track.id is None:
         self.__current_track = Lp().player.current_track
     Lp().settings.set_value("infoswitch", GLib.Variant("s", "albums"))
     view = widget.get_child_at(0, 0)
     if view is None:
         view = CurrentArtistAlbumsView()
         view.set_property("expand", True)
         view.show()
         widget.add(view)
     t = Thread(target=view.populate, args=(self.__current_track, ))
     t.daemon = True
     t.start()
Example #7
0
 def _on_map_albums(self, widget, force=False):
     """
         Load on map
         @param widget as Gtk.Bin
         @param force as bool
     """
     self._menu.hide()
     if self._current is None:
         self._current = self._get_current()
     Lp().settings.set_value('infoswitch', GLib.Variant('s', 'albums'))
     view = widget.get_child_at(0, 0)
     if view is None:
         view = CurrentArtistAlbumsView()
         view.set_property('expand', True)
         view.show()
         widget.add(view)
     t = Thread(target=view.populate,
                args=(self._current[0], self._current[1]))
     t.daemon = True
     t.start()
Example #8
0
 def _on_map_albums(self, widget, force=False):
     """
         Load on map
         @param widget as Gtk.Grid
         @param force as bool
     """
     self._menu.hide()
     self._jump_button.show()
     self._jump_button.set_tooltip_markup(
         "<b>%s</b> - " % escape(Lp().player.current_track.artists) +
         Lp().player.current_track.name)
     if self._current is None:
         self._current = self._get_current()
     Lp().settings.set_value('infoswitch', GLib.Variant('s', 'albums'))
     view = widget.get_child_at(0, 0)
     if view is None:
         view = CurrentArtistAlbumsView()
         view.set_property('expand', True)
         view.show()
         widget.add(view)
     t = Thread(target=view.populate,
                args=(self._current[0], self._current[1]))
     t.daemon = True
     t.start()