Method: Gtk::Container#add
- Defined in:
- lib/gtk4/container.rb
#add(child, properties = {}) ⇒ Object Also known as: <<
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/gtk4/container.rb', line 20 def add(child, properties={}) child.freeze_child_notify begin add_raw(child) properties.each do |key, value| child_set_property(child, key, value) end self ensure child.thaw_child_notify end end |