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

An unsigned integer with the merge ID for the merged UI. The merge ID can be used to unmerge the UI with the function gtk-ui-manager-remove-ui. 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 function gtk-ui-manager-add-ui-from-string has been deprecated since version 3.10 and should not be used in newly written code.
 

See also

*2021-7-24