Package: gtk

Function gtk:ui-manager-add-ui-from-string

Lambda List

gtk:ui-manager-add-ui-from-string (manager buffer)

Arguments

manager -- a gtk:ui-manager object
buffer -- the string to parse

Return Value

The unsigned integer with the merge ID for the merged UI. The merge ID can be used to unmerge the UI with the gtk:ui-manager-remove-ui function. If an error occurred, the return value is 0.

Details

Parses a string containing a UI definition and merges it with the current contents of the UI manager. An enclosing <ui> element is added if it is missing.

Warning

The gtk:ui-manager-add-ui-from-string function has been deprecated since version 3.10 and should not be used in newly written code.
 

See also

#2024-11-20