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