Sha256: 8bd066def3fb93ecfd8dc4bd2f42f1f6266ce3a3e92dde12be63a27648f12789

Contents?: true

Size: 344 Bytes

Versions: 6

Compression:

Stored size: 344 Bytes

Contents

#
# Based on the empty window Gtk+ tutorial example at
# http://library.gnome.org/devel/gtk-tutorial/2.90/c39.html
#
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'gir_ffi'

GirFFI.setup :Gtk, '2.0'

Gtk.init
win = Gtk::Window.new :toplevel
win.show
GObject.signal_connect(win, "destroy") { Gtk.main_quit }
Gtk.main

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-0.0.14 examples/01_empty_window.rb
gir_ffi-0.0.13 examples/01_empty_window.rb
gir_ffi-0.0.12 examples/01_empty_window.rb
gir_ffi-0.0.11 examples/01_empty_window.rb
gir_ffi-0.0.10 examples/01_empty_window.rb
gir_ffi-0.0.9 examples/01_empty_window.rb