Sha256: c4528745831d14fdb539cb5a442d370eae64f2df9394ff1671354e32789d75d8

Contents?: true

Size: 886 Bytes

Versions: 2

Compression:

Stored size: 886 Bytes

Contents

# frozen_string_literal: true

module SSHTunnel
  module UI
    module Windows
      class ApplicationWindow < Gtk::ApplicationWindow

        # 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/application_window.glade'
            super

            bind_template_child 'hosts_scrolled_window'
          end

        end

        include SSHTunnel::UI::Helpers::ApplicationWindowHelper


        def initialize(application)
          super application: application

          # Set instance variables
          @application = application

          # Set window title
          set_title 'SSH Tunnel Manager'

          # Load hosts treeview
          load_hosts_treeview
        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/application_window.rb
ssh-hull-1.0.0 lib/ssh-hull/ui/windows/application_window.rb