Class GnomeSSHMenu::PrefsDialog
In: lib/gnome-sshmenu.rb  (Git)
Parent: SSHMenu::PrefsDialog

The GnomeSSHMenu::PrefsDialog class builds on SSHMenu::PrefsDialog to add support for tabbed gnome-terminal windows.

Methods

Public Instance methods

Adds the ‘Open all as tabs’ checkbox to the global option pane created by SSHMenu::PrefsDialog#make_options_pane.

[Source]

# File lib/gnome-sshmenu.rb, line 229
    def make_options_pane
      table = super
      r = table.get_property('n-rows')

      @chk_open_tabs = Gtk::CheckButton.new(
        'include "Open all as _tabs" selection', true
      )
      @chk_open_tabs.active = @config.menus_open_tabs?
      table.attach(
        @chk_open_tabs, 0, 1, r, r+1, Gtk::EXPAND|Gtk::FILL, Gtk::FILL, 0, 0
      )

      return table
    end

Stores the value of the ‘Open all as tabs’ checkbox and then delegates to SSHMenu::PrefsDialog#save_options.

[Source]

# File lib/gnome-sshmenu.rb, line 221
    def save_options
      @config.menus_open_tabs = @chk_open_tabs.active?
      super
    end

[Validate]