Package: gio

Function g-action-print-detailed-name

Lambda List

g-action-print-detailed-name (name &optional value)

Arguments

name -- a string with a valid action name
value -- an optional g-variant target value

Details

Formats a detailed action name from an action name and a target value.

It is an error to call this function with an invalid action name. This function is the opposite of the g-action-parse-detailed-name function. It will produce a string that can be parsed back to the action name and target value by that function. See that function for the types of strings that will be printed by this function.

Examples

(g-action-print-detailed-name "action")
=> "action"
(g-action-print-detailed-name "action" (g-variant-new-boolean "t"))
=> "action(true)"
(g-action-print-detailed-name "action" (g-variant-new-int32 42))
=> "action(42)"    
 

See also

2021-12-10