Changes in / [680:965523af85d4:681:6d454f3c68c8]
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
makeinst.bat
r20 r653 1 1 set MSVCRDIR=c:\windows\winsxs\x86_Microsoft.VC90.CRT*9.0.21022.8* 2 2 set GTKRTDIR=c:\Python27\Lib\site-packages\gtk-2.0\runtime 3 set CEFDIR=c:\Python27\Lib\site-packages\cefpython3 3 4 set NSISDIR=C:\Program Files\NSIS 4 5 -
setup.py
r497 r654 28 28 msvcrDir = os.environ["MSVCRDIR"] if "MSVCRDIR" in os.environ else None 29 29 if msvcrDir: 30 data_files.append(("Microsoft.VC90.CRT", glob(os.path.join(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] 31 32 32 33 gtkRuntimeDir = os.environ["GTKRTDIR"] if "GTKRTDIR" in os.environ else None … … 46 47 data_files.append((os.path.join("library", path), 47 48 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 48 59 49 60 with open("mlx-common.nsh", "wt") as f: … … 80 91 81 92 if os.name=="nt": 93 os.rename(os.path.join(scriptdir, "dist", "library", "libcef.dll"), 94 os.path.join(scriptdir, "dist", "libcef.dll")) 82 95 mlx.update.buildManifest(os.path.join(scriptdir, "dist")) 83 96 with open(os.path.join(scriptdir, "dist", "Uninstall.conf"), "wt") as f: -
src/mlx/common.py
r585 r651 18 18 #------------------------------------------------------------------------------- 19 19 20 if os.name=="nt" or "FORCE_PYGTK" in os.environ: 20 # Due to CEF, PyGTK is the default 21 if "FORCE_PYGOBJECT" not in os.environ: 21 22 print "Using PyGTK" 22 23 pygobject = False -
src/mlx/config.py
r503 r652 211 211 class Config(object): 212 212 """Our configuration.""" 213 DEFAULT_UPDATE_URL = "http://mlx.varadiistvan.hu/update "213 DEFAULT_UPDATE_URL = "http://mlx.varadiistvan.hu/update/cef" 214 214 215 215 _messageTypesSection = "messageTypes" -
src/mlx/gui/gui.py
r620 r652 15 15 from mlx.gui.pirep import PIREPViewer 16 16 from mlx.gui.bugreport import BugReportDialog 17 from mlx.gui.acars import ACARS 18 import cef 17 19 18 20 import mlx.const as const … … 102 104 window.connect("delete-event", self.deleteMainWindow) 103 105 window.connect("window-state-event", self._handleMainWindowState) 106 if os.name=="nt": 107 window.connect("leave-notify-event", self._handleLeaveNotify) 104 108 accelGroup = gtk.AccelGroup() 105 109 window.add_accel_group(accelGroup) 110 window.realize() 106 111 107 112 mainVBox = gtk.VBox() … … 151 156 self._notebook.append_page(self._fleetGateStatus, label) 152 157 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 153 163 (self._debugLogWidget, self._debugLogView) = self._buildLogWidget() 154 164 self._debugLogWidget.show_all() … … 170 180 171 181 window.show_all() 182 if os.name=="nt": 183 window.get_window().focus() 172 184 173 185 self._wizard.grabDefault() … … 427 439 self._updater = Updater(self, 428 440 self._programDirectory, 429 self.config. updateURL,441 self.config.DEFAULT_UPDATE_URL, 430 442 self._mainWindow) 431 443 self._updater.start() 444 445 cef.initialize() 446 self._acars.start() 432 447 433 448 singleton.raiseCallback = self.raiseCallback 434 449 gtk.main() 435 450 singleton.raiseCallback = None 451 452 cef.finalize() 436 453 437 454 self._disconnect() … … 687 704 (event.new_window_state&WINDOW_STATE_ICONIFIED)==0: 688 705 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() 689 713 690 714 def raiseCallback(self): -
src/mlx/update.py
r672 r681 525 525 return 526 526 527 print "update: result:", result528 529 527 (manifest, updateManifest, modifiedAndNew, removed) = result 530 528 localRemoved = getToremoveFiles(directory)
Note:
See TracChangeset
for help on using the changeset viewer.