lib/jldrill/views/gtk/widgets/WordTable.rb in jldrill-0.5.1.7 vs lib/jldrill/views/gtk/widgets/WordTable.rb in jldrill-0.6.0.1
- old
+ new
@@ -1,13 +1,13 @@
+# encoding: utf-8
require 'gtk2'
module JLDrill::Gtk
class WordTable < Gtk::ScrolledWindow
def initialize(itemList, itemType, &selectAction)
super()
- @itemType = itemType
- @headings = @itemType.headings
+ @headings = itemType.const_get(:Headings)
@selectAction = selectAction
self.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC)
self.shadow_type = Gtk::SHADOW_IN
set_size_request(450, 200)