lib/jldrill/oldUI/GtkVocabView.rb in jldrill-0.5.1.7 vs lib/jldrill/oldUI/GtkVocabView.rb in jldrill-0.6.0.1
- old
+ new
@@ -1,5 +1,6 @@
+# encoding: utf-8
require 'gtk2'
require 'jldrill/model/items/Vocabulary'
module JLDrill::Gtk
class GtkVocabView < Gtk::VBox
@@ -17,15 +18,15 @@
end
@definitionsBox = createBox("Definitions: ",
vocab.definitionsRaw)
@markersBox = createField("Markers: ", vocab.markers)
- pack_start(@kanjiField, true, false, 5)
- pack_start(@hintField, true, false, 5)
- pack_start(@readingField, true, false, 5)
+ pack_start(@kanjiField, false, false, 5)
+ pack_start(@hintField, false, false, 5)
+ pack_start(@readingField, false, false, 5)
pack_start(@definitionsBox, true, true, 5)
- pack_start(@markersBox, true, true, 5)
+ pack_start(@markersBox, false, true, 5)
end
def kanjiWidget
@kanjiField.children[1]
end
@@ -195,10 +196,17 @@
end
def setAcceptKanji(&block)
@acceptKanjiBlock = block
end
+
def focusReading
readingWidget.grab_focus
+ end
+
+ def showBusy(bool)
+ # This remains unimplemented since I would have to rewrite
+ # the entire class to make it work. I will postpone it until
+ # I rewrite the class.
end
end
end