module GirFFIGtk::MainLoopOverride::ClassMethods

Implementation of class methods for MainLoopOverride

Public Instance Methods

main_with_override() click to toggle source
# File lib/gir_ffi-gtk/base.rb, line 45
def main_with_override
  GLib::MainLoop::ThreadEnabler.instance.setup_idle_handler if RUBY_ENGINE == "ruby"
  GLib::MainLoop::RUNNING_LOOPS << DummyLoop.new
  result = main_without_override
  ex = GLib::MainLoop::EXCEPTIONS.shift
  GLib::MainLoop::RUNNING_LOOPS.pop
  raise ex if ex

  result
end