Class: Smartdict::Gui::WordEntry

Inherits:
Gtk::Entry
  • Object
show all
Defined in:
lib/smartdict/gui/word_entry.rb

Instance Method Summary collapse

Constructor Details

#initialize(controller) ⇒ WordEntry

Returns a new instance of WordEntry.



4
5
6
7
8
# File 'lib/smartdict/gui/word_entry.rb', line 4

def initialize(controller)
  super()
  @controller = controller
  signal_connect('activate') { @controller.translate }
end