Class: Alexandria::UI::ProviderPreferencesBaseDialog

Inherits:
Object
  • Object
show all
Defined in:
lib/alexandria/ui/provider_preferences_base_dialog.rb

Direct Known Subclasses

NewProviderDialog, ProviderPreferencesDialog

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title:, parent:, flags:, buttons:) ⇒ ProviderPreferencesBaseDialog

Returns a new instance of ProviderPreferencesBaseDialog.



20
21
22
23
24
25
26
27
28
# File 'lib/alexandria/ui/provider_preferences_base_dialog.rb', line 20

def initialize(title:, parent:, flags:, buttons:)
  @dialog = Gtk::Dialog.new(title: title, parent: parent, flags: flags,
                            buttons: buttons)

  @dialog.resizable = false
  @dialog.child.border_width = 12

  @controls = []
end

Instance Attribute Details

#dialogObject (readonly)

Returns the value of attribute dialog.



18
19
20
# File 'lib/alexandria/ui/provider_preferences_base_dialog.rb', line 18

def dialog
  @dialog
end