Beispiel #1
0
    def __init__(self, window):
        """
            Init toolbar
            @param window as Window
        """
        Gtk.HeaderBar.__init__(self)
        self.__width = Sizing.SMALL
        self.set_title("Lollypop")
        self.__toolbar_playback = ToolbarPlayback(window)
        self.__toolbar_playback.show()
        self.__toolbar_info = ToolbarInfo()
        self.__toolbar_info.show()
        self.__toolbar_title = ToolbarTitle()
        self.__toolbar_end = ToolbarEnd()
        self.__toolbar_end.show()
        self.pack_start(self.__toolbar_playback)
        self.pack_start(self.__toolbar_info)
        self.set_custom_title(self.__toolbar_title)
        self.pack_end(self.__toolbar_end)

        App().player.connect("status-changed", self.__on_status_changed)
        App().player.connect("current-changed", self.__on_current_changed)
        App().player.connect("next-changed", self.__on_next_changed)
        App().player.connect("prev-changed", self.__on_prev_changed)
        window.connect("adaptive-changed", self.__on_adaptive_changed)
Beispiel #2
0
    def __init__(self, app):
        """
            Init toolbar
            @param app as Gtk.Application
        """
        Gtk.HeaderBar.__init__(self)
        self.__width = WindowSize.SMALL
        self.set_title("Lollypop")
        self.__toolbar_playback = ToolbarPlayback()
        self.__toolbar_playback.show()
        self.__toolbar_info = ToolbarInfo()
        self.__toolbar_info.show()
        self.__toolbar_title = ToolbarTitle()
        self.__toolbar_title.show()
        self.__toolbar_end = ToolbarEnd(app)
        self.__toolbar_end.show()
        self.pack_start(self.__toolbar_playback)
        self.pack_start(self.__toolbar_info)
        self.set_custom_title(self.__toolbar_title)
        self.pack_end(self.__toolbar_end)

        Lp().player.connect('status-changed', self.__on_status_changed)
        Lp().player.connect('current-changed', self.__on_current_changed)
        Lp().player.connect('next-changed', self.__on_next_changed)
        Lp().player.connect('prev-changed', self.__on_prev_changed)
Beispiel #3
0
    def __init__(self, app):
        """
            Init toolbar
            @param app as Gtk.Application
        """
        Gtk.HeaderBar.__init__(self)

        self._toolbar_playback = ToolbarPlayback()
        self._toolbar_playback.show()
        self._toolbar_infos = ToolbarInfos()
        self._toolbar_infos.show()
        self._toolbar_title = ToolbarTitle()
        self._toolbar_title.show()
        self._toolbar_end = ToolbarEnd(app)
        self._toolbar_end.show()
        self.pack_start(self._toolbar_playback)
        self.pack_start(self._toolbar_infos)
        self.set_custom_title(self._toolbar_title)
        self.pack_end(self._toolbar_end)

        Lp.player.connect('status-changed', self._on_status_changed)
        Lp.player.connect('current-changed', self._on_current_changed)
Beispiel #4
0
    def __init__(self):
        """
            Init toolbar
        """
        Gtk.HeaderBar.__init__(self)
        self.__width = WindowSize.SMALL
        self.set_title("Lollypop")
        self.__toolbar_playback = ToolbarPlayback()
        self.__toolbar_playback.show()
        self.__toolbar_info = ToolbarInfo()
        self.__toolbar_info.show()
        self.__toolbar_title = ToolbarTitle()
        self.__toolbar_title.show()
        self.__toolbar_end = ToolbarEnd()
        self.__toolbar_end.show()
        self.pack_start(self.__toolbar_playback)
        self.pack_start(self.__toolbar_info)
        self.set_custom_title(self.__toolbar_title)
        self.pack_end(self.__toolbar_end)

        Lp().player.connect("status-changed", self.__on_status_changed)
        Lp().player.connect("current-changed", self.__on_current_changed)
        Lp().player.connect("next-changed", self.__on_next_changed)
        Lp().player.connect("prev-changed", self.__on_prev_changed)
Beispiel #5
0
 def __init__(self, window):
     """
         Init toolbar
         @param window as Window
     """
     Gtk.HeaderBar.__init__(self)
     SizeAllocationHelper.__init__(self)
     self.__width = Size.MINI
     self.__timeout_id = None
     self.set_title("Lollypop")
     self.__toolbar_playback = ToolbarPlayback(window)
     self.__toolbar_playback.show()
     self.__toolbar_info = ToolbarInfo()
     self.__toolbar_info.show()
     self.__toolbar_title = ToolbarTitle()
     self.__toolbar_end = ToolbarEnd(window)
     self.__toolbar_end.show()
     self.pack_start(self.__toolbar_playback)
     self.pack_start(self.__toolbar_info)
     self.set_custom_title(self.__toolbar_title)
     self.pack_end(self.__toolbar_end)
     return [(App().player, "current-changed", "_on_current_changed"),
             (App().window.container.widget, "notify::folded",
              "_on_container_folded")]