Class: Pickaxe::ApplicationWindow
- Inherits:
-
Gtk::ApplicationWindow
- Object
- Gtk::ApplicationWindow
- Pickaxe::ApplicationWindow
- Defined in:
- lib/pickaxe/application_window.rb
Overview
Pickaxe::ApplicationWindow < Gtk::ApplicationWindow
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application) ⇒ ApplicationWindow
constructor
A new instance of ApplicationWindow.
Constructor Details
#initialize(application) ⇒ ApplicationWindow
Returns a new instance of ApplicationWindow.
23 24 25 |
# File 'lib/pickaxe/application_window.rb', line 23 def initialize(application) super application: application end |
Class Method Details
.init ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/pickaxe/application_window.rb', line 13 def init GtkSource::View.init # Set template from a Glade UI file ui_file_path = File.('ui/application_window.ui', __dir__) ui_data = File.read ui_file_path set_template data: ui_data end |