Sha256: 787acd7bb3c9077c12b36cfb14874b7f7d07ada5564a0a8d882c0eabefa78659

Contents?: true

Size: 373 Bytes

Versions: 3

Compression:

Stored size: 373 Bytes

Contents

require 'Context/View'

module Context
	class PageView < View
		def initialize(context)
			super(context)
		end
		
		# The page view is meant to be the main view for a context
		# (in Gtk it's a window).  So if the view closes, it should
		# close the context.  Actually, I'm not sure if I like this
		# idea.  It might change.
		def close
			@context.close
		end
	end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
jldrill-0.5.1.7 lib/Context/Views/PageView.rb
context-0.0.22 lib/Context/Views/PageView.rb
context-0.0.16 lib/Context/Views/PageView.rb