Ejemplo n.º 1
0
def enable(dmusic):
    SignalCollector.connect("notify", Player, "instant-new-song", track_notify.on_new_song)
Ejemplo n.º 2
0
 def register_events(self):
     SignalCollector.connect("mpris2", Player, "instant-new-song", self.on_player_new_song)
     # SignalCollector.connect("mpris2", Player, "new-song", self.on_player_new_song)
     SignalCollector.connect("mpris2", Player, "played", self.on_player_played)
     SignalCollector.connect("mpris2", Player, "paused", self.on_player_paused)
     SignalCollector.connect("mpris2", Player, "stopped", self.on_player_stopped)
     SignalCollector.connect("mpris2", Player, "seeked", self.on_player_seeked)
     SignalCollector.connect("mpris2", MediaDB, "simple-changed", self.on_songs_changed)
     SignalCollector.connect("mpris2", config, "config-changed", self.on_config_changed)
     SignalCollector.connect("mpris2", Dispatcher, "being-quit", self.on_being_quit)
Ejemplo n.º 3
0
 def register_events(self):
     SignalCollector.connect("mpris2", Player, "instant-new-song",
                             self.on_player_new_song)
     # SignalCollector.connect("mpris2", Player, "new-song", self.on_player_new_song)
     SignalCollector.connect("mpris2", Player, "played",
                             self.on_player_played)
     SignalCollector.connect("mpris2", Player, "paused",
                             self.on_player_paused)
     SignalCollector.connect("mpris2", Player, "stopped",
                             self.on_player_stopped)
     SignalCollector.connect("mpris2", Player, "seeked",
                             self.on_player_seeked)
     SignalCollector.connect("mpris2", MediaDB, "simple-changed",
                             self.on_songs_changed)
     SignalCollector.connect("mpris2", config, "config-changed",
                             self.on_config_changed)
     SignalCollector.connect("mpris2", Dispatcher, "being-quit",
                             self.on_being_quit)
Ejemplo n.º 4
0
def enable(dmusic):
    SignalCollector.connect("pidgin", Player, "instant-new-song", pidgin_status_notification.on_new_song)
Ejemplo n.º 5
0
def enable(dmusic):
    SignalCollector.connect("baidumusic", Dispatcher, "being-quit", lambda w: music_list.save())
    Dispatcher.emit("add-source", radio_list_tab)
Ejemplo n.º 6
0
def enable(dmusic):
    SignalCollector.connect("musicfm", Dispatcher, "being-quit", lambda w: radio_list.save())
    radio_browser.start_fetch_channels()    
    Dispatcher.emit("add-source", radio_list_tab)
    Dispatcher.emit("add-search-view", radio_search_tab)
Ejemplo n.º 7
0
def enable(dmusic):
    SignalCollector.connect("pidgin", Player, "instant-new-song",
                            pidgin_status_notification.on_new_song)
Ejemplo n.º 8
0
def enable(dmusic):
    SignalCollector.connect("notify", Player, "instant-new-song", track_notify.on_new_song)
Ejemplo n.º 9
0
def enable(dmusic):
    SignalCollector.connect("webcast", Dispatcher, "being-quit", lambda w: _save_db())
    Dispatcher.emit("add-source", webcast_list_tab)
    Dispatcher.emit("add-search-view", webcast_search_item)
Ejemplo n.º 10
0
def enable(dmusic):
    SignalCollector.connect("webcast", Dispatcher, "being-quit",
                            lambda w: _save_db())
    Dispatcher.emit("add-source", webcast_list_tab)
    Dispatcher.emit("add-search-view", webcast_search_item)