Show
Ignore:
Timestamp:
02/13/08 08:14:06 (9 months ago)
Author:
asterix
Message:

[Goedson] use timeout_add_seconds instead of timeout_add, more efficient. fixes #3734

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/music_track_listener.py

    r9191 r9324  
    8888                        self.banshee_paused_before = False 
    8989                        self.banshee_is_here = False 
    90                         gobject.timeout_add(10000, self._check_if_banshee_bus) 
     90                        gobject.timeout_add_seconds(10, self._check_if_banshee_bus) 
    9191                        if self.dubus_methods.NameHasOwner('org.gnome.Banshee'): 
    9292                                self._get_banshee_bus() 
     
    9494                        # Otherwise, it opens Banshee! 
    9595                        self.banshee_props ={} 
    96                         gobject.timeout_add(1000, self._banshee_check_track_status) 
     96                        gobject.timeout_add_seconds(1, self._banshee_check_track_status) 
    9797 
    9898        def _check_if_banshee_bus(self):