Ignore:
Timestamp:
07/02/12 17:18:15 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added support to enable/disable the approach callouts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/prefs.py

    r249 r270  
    253253        self._pilotControlsSounds.set_active(config.pilotControlsSounds)
    254254        self._pilotHotkey.set(config.pilotHotkey)
    255         #self._approachCallOuts.set_active(config.approachCallOuts)
     255        self._enableApproachCallouts.set_active(config.enableApproachCallouts)
    256256        self._speedbrakeAtTD.set_active(config.speedbrakeAtTD)
    257257
     
    298298        config.pilotControlsSounds = self._pilotControlsSounds.get_active()
    299299        config.pilotHotkey = self._pilotHotkey.get()
    300         #config.approachCallOuts = self._approachCallOuts.get_active()
     300        config.enableApproachCallouts = self._enableApproachCallouts.get_active()
    301301        config.speedbrakeAtTD = self._speedbrakeAtTD.get_active()
    302302
     
    661661        backgroundBox.pack_start(self._pilotHotkey, False, False, 4)
    662662
    663         # self._approachCallOuts = gtk.CheckButton(xstr("prefs_sounds_approachCallOuts"))
    664         # self._approachCallOuts.set_use_underline(True)
    665         # self._approachCallOuts.set_tooltip_text(xstr("prefs_sounds_approachCallOuts_tooltip"))
    666         # backgroundBox.pack_start(self._approachCallOuts, False, False, 4)
     663        self._enableApproachCallouts = gtk.CheckButton(xstr("prefs_sounds_approachCallouts"))
     664        self._enableApproachCallouts.set_use_underline(True)
     665        self._enableApproachCallouts.set_tooltip_text(xstr("prefs_sounds_approachCallouts_tooltip"))
     666        backgroundBox.pack_start(self._enableApproachCallouts, False, False, 4)
    667667       
    668668        self._speedbrakeAtTD = gtk.CheckButton(xstr("prefs_sounds_speedbrakeAtTD"))
     
    711711        self._pilotControlsSounds.set_sensitive(active)
    712712        self._pilotControlsSoundsToggled(self._pilotControlsSounds)
    713         #self._approachCallOuts.set_sensitive(active)
     713        self._enableApproachCallouts.set_sensitive(active)
    714714        self._speedbrakeAtTD.set_sensitive(active)
    715715
Note: See TracChangeset for help on using the changeset viewer.