Sha256: fa4c7e60bdddf5dd20d2591f82ca1580eb847022649b6f3516e0ebadc0a70653

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

require 'Context/Bridge'
require 'Context/Context'
require 'gtk2'

module Context::Gtk
	class App < Context::Context

		attr_reader :mainContext

		def initialize(namespace, context)
			viewBridge = Context::Bridge.new(namespace)
			super(viewBridge)
			Gtk.init
			@mainContext = context.new(viewBridge)
		end
	
		def enter
			super(nil)
			@mainContext.enter(self)
			Gtk.main
		end
	
		def exit
			super()
			Gtk.main_quit
		end
	end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
jldrill-0.5.1.7 lib/Context/Gtk/App.rb
context-0.0.22 lib/Context/Gtk/App.rb
context-0.0.16 lib/Context/Gtk/App.rb