Module: TopinambourWindowActions
- Included in:
- TopinambourWindow
- Defined in:
- lib/window.rb
Overview
Actions of the window that will be called throught the Application instance.
or throught terminal signals.
Instance Method Summary collapse
- #display_about ⇒ Object
- #quit_gracefully ⇒ Object
- #show_color_selector ⇒ Object
- #show_font_selector ⇒ Object
- #show_shortcuts ⇒ Object
Instance Method Details
#display_about ⇒ Object
32 33 34 |
# File 'lib/window.rb', line 32 def display_about About.dialog(self) end |
#quit_gracefully ⇒ Object
20 21 22 |
# File 'lib/window.rb', line 20 def quit_gracefully @application.quit end |
#show_color_selector ⇒ Object
24 25 26 |
# File 'lib/window.rb', line 24 def show_color_selector @overlay.(TopinambourColorSelector) end |
#show_font_selector ⇒ Object
28 29 30 |
# File 'lib/window.rb', line 28 def show_font_selector @overlay.(TopinambourFontSelector) end |
#show_shortcuts ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/window.rb', line 36 def show_shortcuts resource_file = '/com/github/cedlemo/topinambour/shortcuts.ui' builder = Gtk::Builder.new(resource: resource_file) shortcuts_win = builder['shortcuts-window'] shortcuts_win.transient_for = self shortcuts_win.show end |