Package: gtk

Function gtk-action-group-add-actions

Lambda List

gtk-action-group-add-actions (group entries)

Arguments

group -- a gtk-action-group object
entries -- a list of action descriptions

Details

This is a convenience function to create a number of actions and add them to the action group. The "activate" signals of the actions are connected to the callback functions and their accel paths are set to <Actions>/group-name/action-name.

Example

(let ((group (gtk-action-group-new "AppWindowActions"))
      (actions '(("Open"            ; name
                  "gtk-stock-open"  ; stock-id
                  "_Open"           ; label
                  "<ctrl>o"         ; accelerator
                  "Open a file"     ; tooltip
                  nil               ; callback function
                ))))
  (gtk-action-group-add-actions group actions)
  ... )    

Warning

The gtk-action-group-add-actions function has been deprecated since version 3.10 and should not be used in newly written code.
 

See also

*2021-12-18