Class: Gtk::AboutDialog

Inherits:
Object
  • Object
show all
Extended by:
GLib::Deprecatable
Defined in:
lib/gtk4/deprecated.rb,
lib/gtk4/about-dialog.rb

Class Method Summary collapse

Class Method Details

.show(parent = nil, attributes = nil) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/gtk4/about-dialog.rb', line 20

def show(parent=nil, attributes=nil)
  dialog = new
  (attributes || {}).each do |key, value|
    dialog.send("#{key}=", value)
  end
  if parent
    dialog.modal = true
    dialog.transient_for = parent
    dialog.destroy_with_parent = true
  end
  dialog.present
end