Exemplo n.º 1
0
 def stop(self):
     glib.source_remove(self.timeout_id)
     if hasattr(extension, "unregister"):
         if os.name == "nt":
             extension.unregister('idle timer', WindowsTimer.WindowsTimer)
         else:
             extension.unregister('idle timer', LinuxTimer)
Exemplo n.º 2
0
    def stop(self):
        """stop the plugin"""
        self.session = None
        extension.delete_instance(CATEGORY)
        if hasattr(extension, "unregister"):
            extension.unregister("userpanel button", MusicButton.MusicButton)
            self.extensions_unregister()

        return True
Exemplo n.º 3
0
 def stop(self):
     if hasattr(extension, 'unregister'):
         extension.unregister('below userlist', HistoryStatusCombo.HistoryStatusCombo)
     return False
Exemplo n.º 4
0
    def extension_unregister(self):

        extension.unregister('userpanel button', MusicButton.MusicButton)

        if sys.platform == "linux2" or sys.platform == 'linux3': #import unix players
            extension.unregister(CATEGORY, handler_mpris.Amarok2Handler)
            extension.unregister(CATEGORY, handler_mpris.AudaciousHandler)
            extension.unregister(CATEGORY, handler_banshee.BansheeHandler)
            extension.unregister(CATEGORY, handler_mpris.ClementineHandler)
            extension.unregister(CATEGORY, handler_exaile.ExaileHandler)
            extension.unregister(CATEGORY, handler_mpris2.GMusicBrowserHandler)
            extension.unregister(CATEGORY, handler_mpris.GuayadequeHandler)
            extension.unregister(CATEGORY, handler_lastfm.LastfmHandler)
            extension.unregister(CATEGORY, handler_moc.MocHandler)
            extension.unregister(CATEGORY, handler_mpd.MpdHandler)
            extension.unregister(CATEGORY, handler_mpris2.PraghaHandler)
            extension.unregister(CATEGORY, handler_mpris2.RhythmboxHandler)
            extension.unregister(CATEGORY, handler_mpris2.AudaciousHandler)
            extension.unregister(CATEGORY, handler_rhythmbox.RhythmboxHandler)

            if XMMSCLIENT:
                extension.unregister(CATEGORY, handler_xmms2.Xmms2Handler)

        elif sys.platform == "darwin": #OS X players
            extension.unregister(CATEGORY, handler_itunes.iTunesHandler)
            extension.unregister(CATEGORY, handler_spotify.SpotifyHandler)

        else: #import Windows players
            extension.unregister(CATEGORY, handler_atunes.aTunesHandler)
            extension.unregister(CATEGORY, handler_foobar2000.Foobar2000Handler)
            extension.unregister(CATEGORY, handler_gomplayer.GOMPlayerHandler)
            extension.unregister(CATEGORY, handler_mediamonkey.MediaMonkeyHandler)
            extension.unregister(CATEGORY, handler_mediaplayerclassic.MediaPlayerClassicHandler)
            extension.unregister(CATEGORY, handler_onebyone.OneByOneHandler)
            extension.unregister(CATEGORY, handler_realplayer.RealPlayerHandler)
            extension.unregister(CATEGORY, handler_smplayer.SMPlayerHandler)
            extension.unregister(CATEGORY, handler_winamp.WinampHandler)
            extension.unregister(CATEGORY, handler_xmplay.XMPlayHandler)
Exemplo n.º 5
0
 def extension_unregister(self):
     extension.unregister('below conversation', TypingNotification.TypingNotification)
Exemplo n.º 6
0
 def stop(self):
     if hasattr(extension, 'unregister'):
         extension.unregister('below conversation', TypingNotification.TypingNotification)
     return False
Exemplo n.º 7
0
 def extension_unregister(self):
     extension.unregister('below userlist', StatusCombo.StatusCombo)
Exemplo n.º 8
0
 def stop(self):
     glib.source_remove(self.timeout_id)
     if hasattr(extension, "unregister"):
         extension.unregister('idle timer', OSTimer)