Class: Smartdict::Gui::TranslateButton

Inherits:
Gtk::Button
  • Object
show all
Defined in:
lib/smartdict/gui/translate_button.rb

Instance Method Summary collapse

Constructor Details

#initialize(controller) ⇒ TranslateButton

Returns a new instance of TranslateButton.



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

def initialize(controller)
  super("Translate")
  @controller = controller
  signal_connect('clicked') { @controller.translate }
  set_size_request(100, LEFT_BOX_BUTTON_HEIGHT)
end