Package: gio

Function gio:action-print-detailed-name

Lambda List

gio:action-print-detailed-name (name &optional value)

Arguments

name -- a string for a valid action name
value -- an optional g:variant parameter for the 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

2025-2-3