Ignore:
Files:
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • makeinst.bat

    r653 r20  
    11set MSVCRDIR=c:\windows\winsxs\x86_Microsoft.VC90.CRT*9.0.21022.8*
    22set GTKRTDIR=c:\Python27\Lib\site-packages\gtk-2.0\runtime
    3 set CEFDIR=c:\Python27\Lib\site-packages\cefpython3
    43set NSISDIR=C:\Program Files\NSIS
    54
  • setup.py

    r654 r497  
    2828    msvcrDir = os.environ["MSVCRDIR"] if "MSVCRDIR" in os.environ else None
    2929    if msvcrDir:
    30         data_files.append(("Microsoft.VC90.CRT", glob(os.path.join(msvcrDir, "*.*"))))
    31         os.environ["PATH"] = os.environ["PATH"] + ";" + glob(os.path.join(msvcrDir))[0]
     30        data_files.append(("Microsoft.VC90.CRT",  glob(os.path.join(msvcrDir, "*.*"))))
    3231
    3332    gtkRuntimeDir = os.environ["GTKRTDIR"] if "GTKRTDIR" in os.environ else None
     
    4746        data_files.append((os.path.join("library", path),
    4847                           glob(os.path.join(gtkRuntimeDir, path, "*"))))
    49 
    50     cefDir = os.environ.get("CEFDIR")
    51     if cefDir:
    52         for fileName in ["icudt.dll", "subprocess.exe"]:
    53             data_files.append(("", [os.path.join(cefDir, fileName)]))
    54 
    55         data_files.append(("locales",
    56                            glob(os.path.join(cefDir, "locales", "*"))))
    57 
    58     print data_files
    5948
    6049    with open("mlx-common.nsh", "wt") as f:
     
    9180
    9281if os.name=="nt":
    93     os.rename(os.path.join(scriptdir, "dist", "library", "libcef.dll"),
    94               os.path.join(scriptdir, "dist", "libcef.dll"))
    9582    mlx.update.buildManifest(os.path.join(scriptdir, "dist"))
    9683    with open(os.path.join(scriptdir, "dist", "Uninstall.conf"), "wt") as f:
  • src/mlx/common.py

    r651 r585  
    1818#-------------------------------------------------------------------------------
    1919
    20 # Due to CEF, PyGTK is the default
    21 if "FORCE_PYGOBJECT" not in os.environ:
     20if os.name=="nt" or "FORCE_PYGTK" in os.environ:
    2221    print "Using PyGTK"
    2322    pygobject = False
  • src/mlx/config.py

    r652 r503  
    211211class Config(object):
    212212    """Our configuration."""
    213     DEFAULT_UPDATE_URL = "http://mlx.varadiistvan.hu/update/cef"
     213    DEFAULT_UPDATE_URL = "http://mlx.varadiistvan.hu/update"
    214214
    215215    _messageTypesSection = "messageTypes"
  • src/mlx/gui/gui.py

    r652 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()
    446         self._acars.start()
    447432
    448433        singleton.raiseCallback = self.raiseCallback
    449434        gtk.main()
    450435        singleton.raiseCallback = None
    451 
    452         cef.finalize()
    453436
    454437        self._disconnect()
     
    704687             (event.new_window_state&WINDOW_STATE_ICONIFIED)==0:
    705688            self._mainWindow.present()
    706 
    707     def _handleLeaveNotify(self, widget, event):
    708         """Handle the leave-notify event.
    709 
    710         Here we reset the focus to the main window as CEF might have acquired
    711         it earlier."""
    712         self._mainWindow.get_window().focus()
    713689
    714690    def raiseCallback(self):
  • src/mlx/update.py

    r681 r672  
    525525        return
    526526
     527    print "update: result:", result
     528
    527529    (manifest, updateManifest, modifiedAndNew, removed) = result       
    528530    localRemoved = getToremoveFiles(directory)
Note: See TracChangeset for help on using the changeset viewer.