Method: Gtk::AboutDialog.show
- Defined in:
- lib/gtk4/about-dialog.rb
.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 |