Class: SSHTunnel::UI::Windows::Hosts::DeleteWindow
- Inherits:
-
Gtk::Window
- Object
- Gtk::Window
- SSHTunnel::UI::Windows::Hosts::DeleteWindow
- Defined in:
- lib/ssh-hull/ui/windows/hosts/delete_window.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application, window, host) ⇒ DeleteWindow
constructor
A new instance of DeleteWindow.
Constructor Details
#initialize(application, window, host) ⇒ DeleteWindow
Returns a new instance of DeleteWindow.
28 29 30 31 32 33 34 35 36 |
# File 'lib/ssh-hull/ui/windows/hosts/delete_window.rb', line 28 def initialize(application, window, host) super # Set window title set_title t('window.host.remove', host: host) # Set instance variables @host = host end |
Class Method Details
.init ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/ssh-hull/ui/windows/hosts/delete_window.rb', line 14 def init # Set the template from the resources binary set_template resource: '/com/ungtb10d/ssh-hull/ui/hosts/delete_window.glade' bind_template_child 'button_submit' bind_template_child 'button_cancel' end |