Package: gtk

Function gtk:actionable-set-detailed-action-name

Lambda List

gtk:actionable-set-detailed-action-name (actionable name)

Arguments

actionable -- a gtk:actionable widget
name -- a string for the detailed action name

Details

Sets the action name and associated string target value of an actionable widget. This allows for the effect of both the gtk:actionable-action-name and gtk:actionable-action-target functions in the common case that the target is string-valued.

The name argument is a string of the form "action::target" where "action" is the action name and "target" is the string to use as the target.

Examples

(setq button (make-instance 'gtk:button))
=> #<GTK-BUTTON {1004A8C973}>
(gtk:actionable-set-detailed-action-name button "win.justify::left")
(values (gtk:actionable-action-name button)
        (g:variant-string (gtk:actionable-action-target button)))
=> "win.justify"
=> "left"    
 

See also

2025-2-23