Changeset 1098:cd3cf67ef749 for src/mlx/gui
- Timestamp:
- 08/11/23 14:46:33 (16 months ago)
- Branch:
- python3
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r1097 r1098 118 118 window.set_title(WINDOW_TITLE_BASE) 119 119 window.set_icon_from_file(os.path.join(iconDirectory, "logo.ico")) 120 window.set_resizable( False)120 window.set_resizable(self.config.mainWindowResizable) 121 121 window.connect("delete-event", self.deleteMainWindow) 122 122 window.connect("window-state-event", self._handleMainWindowState) … … 1432 1432 self._clearHotkeys() 1433 1433 self._preferences.run(self.config) 1434 self._mainWindow.set_resizable(self.config.mainWindowResizable) 1434 1435 self._setupTimeSync() 1435 1436 self._listenHotkeys() -
src/mlx/gui/prefs.py
r1094 r1098 231 231 232 232 self._setLanguage(config.language) 233 self._mainWindowResizable.set_active(config.mainWindowResizable) 233 234 self._hideMinimizedWindow.set_active(config.hideMinimizedWindow) 234 235 self._quitOnClose.set_active(config.quitOnClose) … … 287 288 """Setup the given config from the settings in the dialog.""" 288 289 config.language = self._getLanguage() 290 config.mainWindowResizable = self._mainWindowResizable.get_active() 289 291 config.hideMinimizedWindow = self._hideMinimizedWindow.get_active() 290 292 config.quitOnClose = self._quitOnClose.get_active() … … 369 371 self._warnedRestartNeeded = False 370 372 373 self._mainWindowResizable = Gtk.CheckButton(xstr("prefs_mainWindowResizable")) 374 self._mainWindowResizable.set_use_underline(True) 375 self._mainWindowResizable.set_tooltip_text(xstr("prefs_mainWindowResizable_tooltip")) 376 guiBox.pack_start(self._mainWindowResizable, False, False, 4) 377 371 378 self._hideMinimizedWindow = Gtk.CheckButton(xstr("prefs_hideMinimizedWindow")) 372 379 self._hideMinimizedWindow.set_use_underline(True)
Note:
See TracChangeset
for help on using the changeset viewer.