Class: Pickaxe::ApplicationWindow

Inherits:
Gtk::ApplicationWindow
  • Object
show all
Defined in:
lib/pickaxe/application_window.rb

Overview

Pickaxe::ApplicationWindow < Gtk::ApplicationWindow

Class Method Summary collapse

Instance Method Summary collapse

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

.initObject



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.expand_path('ui/application_window.ui', __dir__)
  ui_data = File.read ui_file_path
  set_template data: ui_data
end