Ignore:
File:
1 edited

Legend:

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

    r687 r620  
    1515from mlx.gui.pirep import PIREPViewer
    1616from mlx.gui.bugreport import BugReportDialog
    17 from mlx.gui.acars import ACARS
    18 import cef
    1917
    2018import mlx.const as const
     
    104102        window.connect("delete-event", self.deleteMainWindow)
    105103        window.connect("window-state-event", self._handleMainWindowState)
    106         if os.name=="nt":
    107             window.connect("leave-notify-event", self._handleLeaveNotify)
    108104        accelGroup = gtk.AccelGroup()
    109105        window.add_accel_group(accelGroup)
    110         window.realize()
    111106
    112107        mainVBox = gtk.VBox()
     
    156151        self._notebook.append_page(self._fleetGateStatus, label)
    157152
    158         self._acars = ACARS(self)
    159         label = gtk.Label("ACARS")
    160         label.set_use_underline(True)
    161         self._notebook.append_page(self._acars, label)
    162 
    163153        (self._debugLogWidget, self._debugLogView) = self._buildLogWidget()
    164154        self._debugLogWidget.show_all()
     
    180170
    181171        window.show_all()
    182         if os.name=="nt":
    183             window.get_window().focus()
    184172
    185173        self._wizard.grabDefault()
     
    439427            self._updater = Updater(self,
    440428                                    self._programDirectory,
    441                                     self.config.DEFAULT_UPDATE_URL,
     429                                    self.config.updateURL,
    442430                                    self._mainWindow)
    443431            self._updater.start()
    444 
    445         cef.initialize(self._programDirectory, self._cefInitialized)
    446432
    447433        singleton.raiseCallback = self.raiseCallback
    448434        gtk.main()
    449435        singleton.raiseCallback = None
    450 
    451         cef.finalize()
    452436
    453437        self._disconnect()
     
    704688            self._mainWindow.present()
    705689
    706     def _handleLeaveNotify(self, widget, event):
    707         """Handle the leave-notify event.
    708 
    709         Here we reset the focus to the main window as CEF might have acquired
    710         it earlier."""
    711         self._mainWindow.get_window().focus()
    712 
    713690    def raiseCallback(self):
    714691        """Callback for the singleton handling code."""
     
    811788        self._weightHelp.set_sensitive(False)
    812789        self._mainWindow.get_window().set_cursor(self._busyCursor)
    813         self._statusbar.updateBusyState(message)
    814 
    815     def updateBusyState(self, message):
    816         """Update the busy state."""
    817790        self._statusbar.updateBusyState(message)
    818791
     
    14911464                                      summary, description, email)
    14921465
    1493     def _cefInitialized(self):
    1494         """Called when CEF has been initialized."""
    1495         self._acars.start()
    1496         cef.initializeSimBrief()
    1497 
    14981466    def _bugReportSentCallback(self, returned, result):
    14991467        """Callback function for the bug report sending result."""
Note: See TracChangeset for help on using the changeset viewer.