lib/jldrill/views/gtk/widgets/ItemTable.rb in jldrill-0.5.1.7 vs lib/jldrill/views/gtk/widgets/ItemTable.rb in jldrill-0.6.0.1
- old
+ new
@@ -1,17 +1,16 @@
+# encoding: utf-8
require 'gtk2'
require 'jldrill/views/gtk/widgets/WordTable.rb'
require 'jldrill/model/Item'
-require 'jldrill/model/items/ItemFactory'
require 'jldrill/model/items/Vocabulary'
module JLDrill::Gtk
class ItemTable < WordTable
def initialize(itemList, &selectAction)
- super(itemList, JLDrill::ItemFactory.find(JLDrill::Vocabulary),
- &selectAction)
+ super(itemList, JLDrill::Vocabulary, &selectAction)
end
def searchEqual(model, column, key, iter)
retVal = true
vocab = iter[0].to_o