jbox-web/ssh-tunnel

View on GitHub
lib/ssh-tunnel/ui/windows/about_window.rb

Summary

Maintainability
A
0 mins
Test Coverage
C
75%
# frozen_string_literal: true

module SSHTunnel
  module UI
    module Windows
      class AboutWindow < Gtk::AboutDialog

        # Register the class in the GLib world
        type_register

        class << self

          def init
            # Set the template from the resources binary
            set_template resource: '/com/jbox-web/ssh-tunnel/ui/about_window.glade'
          end

        end

        include SSHTunnel::UI::Helpers::Common::TranslationHelper


        def initialize(application)
          super application: application

          set_title t('window.about')
        end

      end
    end
  end
end