Changeset 1111:cb25010707a5 for src/mlx


Ignore:
Timestamp:
09/27/23 14:25:35 (14 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Yet another trick to make CEF work on Linux properly

Location:
src/mlx/gui
Files:
2 edited

Legend:

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

    r1108 r1111  
    209209
    210210    _simBriefHandler = SimBriefHandler()
    211     _initializeCEF([], initializedCallback)
     211    GObject.timeout_add(100, _initializeCEF, [], initializedCallback)
    212212
    213213#------------------------------------------------------------------------------
     
    251251    print("Initialized, executing callback...")
    252252    initializedCallback()
     253
     254    if os.name != "nt":
     255        Gtk.main_quit()
     256
    253257    return False
    254258
  • src/mlx/gui/gui.py

    r1108 r1111  
    485485
    486486        singleton.raiseCallback = self.raiseCallback
    487         if os.name=="nt":
    488             Gtk.main()
    489         else:
    490             cef.initialize(self._cefInitialized)
     487        Gtk.main()
     488        if os.name != "nt":
    491489            cef.messageLoop()
    492490
     
    19811979        It checks if we already know the PID, and if not, asks the user whether
    19821980        to register."""
    1983         if os.name=="nt":
    1984             cef.initialize(self._cefInitialized)
     1981        cef.initialize(self._cefInitialized)
    19851982
    19861983        if not self.config.pilotID and not self.config.password:
Note: See TracChangeset for help on using the changeset viewer.