Sha256: 63ee25075ff2832e148082e0d5d3499d0ae1320be4460a6b977456fb579e95af

Contents?: true

Size: 161 Bytes

Versions: 15

Compression:

Stored size: 161 Bytes

Contents

require 'gir_ffi'

main_loop = GLib::MainLoop.new nil, false

Signal.trap("INT") do
  if main_loop.is_running
    main_loop.quit
  end
  exit
end

main_loop.run

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 examples/main_loop.rb
gir_ffi-0.9.1 examples/main_loop.rb
gir_ffi-0.9.0 examples/main_loop.rb
gir_ffi-0.8.6 examples/main_loop.rb
gir_ffi-0.8.5 examples/main_loop.rb
gir_ffi-0.8.4 examples/main_loop.rb
gir_ffi-0.8.3 examples/main_loop.rb
gir_ffi-0.8.2 examples/main_loop.rb
gir_ffi-0.8.1 examples/main_loop.rb
gir_ffi-0.8.0 examples/main_loop.rb
gir_ffi-0.7.10 examples/main_loop.rb
gir_ffi-0.7.9 examples/main_loop.rb
gir_ffi-0.7.8 examples/main_loop.rb
gir_ffi-0.7.7 examples/main_loop.rb
gir_ffi-0.7.6 examples/main_loop.rb