Changeset 307

Show
Ignore:
Timestamp:
06/11/06 14:34:07 (3 years ago)
Author:
nicfit
Message:

Integrated mmkeys

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main_window.py

    r306 r307  
    104104        self._pref_window = None 
    105105 
     106        # Initialize multi-media keys 
     107        self._mmkeys = MultiMediaKeys(self._audio_control) 
     108 
    106109    def _on_playlist_ctrl_changed(self, ctrl): 
    107110        if ctrl == self._active_playlist: 
     
    298301        self._tooltips.set_tip(scale.get_parent(), 
    299302                               _('Volume %d%%') % (vol * 100)) 
     303 
     304class MultiMediaKeys: 
     305    def __init__(self, audio_control): 
     306        self._audio = audio_control 
     307        import mmkeys