Class: Gtk::UIManager
- Inherits:
-
Object
- Object
- Gtk::UIManager
- Extended by:
- GLib::Deprecatable
- Defined in:
- lib/gtk3/deprecated.rb,
lib/gtk3/ui-manager.rb
Instance Method Summary collapse
Instance Method Details
#add_ui(buffer_or_filename, *args) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gtk3/ui-manager.rb', line 20 def add_ui(buffer_or_filename, *args) if args.empty? if buffer_or_filename =~ /<ui>/ add_ui_from_string(buffer_or_filename, buffer_or_filename.length) else add_ui_from_file(buffer_or_filename) end else merge_id = buffer_or_filename path, name, action, type, top, = args add_ui_raw(merge_id, path, name, action, type, top) end end |
#add_ui_raw ⇒ Object
19 |
# File 'lib/gtk3/ui-manager.rb', line 19 alias_method :add_ui_raw, :add_ui |