Sha256: 12cd5df0a9be3403b929878dfb583796c52f69faa9b2af8688366b7b8b243b48

Contents?: true

Size: 827 Bytes

Versions: 2

Compression:

Stored size: 827 Bytes

Contents

# frozen_string_literal: true

module SSHTunnel
  module UI
    module Windows
      module Tunnels
        class EditWindow < 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/edit_window.glade'
              super
            end

          end

          include SSHTunnel::UI::Helpers::TunnelWindowHelper


          def initialize(application, window, tunnel)
            super

            # Set window title
            set_title t('window.tunnel.edit', tunnel: @tunnel.name)

            # Fills input fields
            restore_form_values(@tunnel)
          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/edit_window.rb
ssh-hull-1.0.0 lib/ssh-hull/ui/windows/tunnels/edit_window.rb