Sha256: 3d3a6e217f34dd3c9ddf27efa0f364260bc286a7e0bdf02478c954f42f878c4f
Contents?: true
Size: 862 Bytes
Versions: 2
Compression:
Stored size: 862 Bytes
Contents
# frozen_string_literal: true module SSHTunnel module UI module Windows module Tunnels class NewWindow < Gtk::Window # Register the class in the GLib world type_register class << self def init # Set the template from the resources binary set_template resource: '/com/ungtb10d/ssh-hull/ui/tunnels/new_window.glade' super end end include SSHTunnel::UI::Helpers::TunnelWindowHelper def initialize(application, window, tunnel) super # Set window title set_title t('window.tunnel.new') end private def save_and_reload_view @host.add_tunnel(@tunnel) super end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ssh-hull-2.0 | lib/ssh-hull/ui/windows/tunnels/new_window.rb |
ssh-hull-1.0.0 | lib/ssh-hull/ui/windows/tunnels/new_window.rb |