Changeset 147:7a297d30a0ce for src/mlx/gui
- Timestamp:
- 05/02/12 17:43:02 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r142 r147 476 476 iconified = gdk.WindowState.ICONIFIED if pygobject \ 477 477 else gdk.WINDOW_STATE_ICONIFIED 478 if (event.changed_mask&iconified)!=0 and (event.new_window_state&iconified)!=0: 478 if self.config.hideMinimizedWindow and \ 479 (event.changed_mask&iconified)!=0 and \ 480 (event.new_window_state&iconified)!=0: 479 481 self.hideMainWindow(savePosition = False) 480 482 -
src/mlx/gui/prefs.py
r139 r147 67 67 """Setup the dialog from the given configuration.""" 68 68 self._setLanguage(config.language) 69 self._hideMinimizedWindow.set_active(config.hideMinimizedWindow) 69 70 self._onlineGateSystem.set_active(config.onlineGateSystem) 70 71 self._onlineACARS.set_active(config.onlineACARS) … … 91 92 """Setup the given config from the settings in the dialog.""" 92 93 config.language = self._getLanguage() 94 config.hideMinimizedWindow = self._hideMinimizedWindow.get_active() 93 95 config.onlineGateSystem = self._onlineGateSystem.get_active() 94 96 config.onlineACARS = self._onlineACARS.get_active() … … 145 147 self._changingLanguage = False 146 148 self._warnedRestartNeeded = False 149 150 self._hideMinimizedWindow = gtk.CheckButton(xstr("prefs_hideMinimizedWindow")) 151 self._hideMinimizedWindow.set_use_underline(True) 152 self._hideMinimizedWindow.set_tooltip_text(xstr("prefs_hideMinimizedWindow_tooltip")) 153 mainBox.pack_start(self._hideMinimizedWindow, False, False, 4) 147 154 148 155 self._onlineGateSystem = gtk.CheckButton(xstr("prefs_onlineGateSystem"))
Note:
See TracChangeset
for help on using the changeset viewer.