Class: Smartdict::Gui::TextView
- Inherits:
-
Gtk::TextView
- Object
- Gtk::TextView
- Smartdict::Gui::TextView
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/smartdict/gui/text_view.rb
Defined Under Namespace
Classes: Buffer
Instance Method Summary collapse
-
#initialize(controller) ⇒ TextView
constructor
A new instance of TextView.
- #show_error(error) ⇒ Object
- #show_translation(translation) ⇒ Object
Constructor Details
Instance Method Details
#show_error(error) ⇒ Object
15 16 17 |
# File 'lib/smartdict/gui/text_view.rb', line 15 def show_error(error) buffer.set_error(error) end |
#show_translation(translation) ⇒ Object
11 12 13 |
# File 'lib/smartdict/gui/text_view.rb', line 11 def show_translation(translation) buffer.set_translation(translation) end |