Method

Gtk.Widget.insert_action_group

Declaration [src]

void
gtk_widget_insert_action_group (
  GtkWidget* widget,
  const char* name,
  GActionGroup* group
)

Description [src]

Inserts group into widget.

Children of widget that implement GtkActionable can then be associated with actions in group by setting their “action-name” to prefix.action-name.

Note that inheritance is defined for individual actions. I.e. even if you insert a group with prefix prefix, actions with the same prefix will still be inherited from the parent, unless the group contains an action with the same name.

If group is NULL, a previously inserted group for name is removed from widget.

Parameters

name const char*
 

the prefix for actions in group

 The data is owned by the caller of the function
 The string is a NUL terminated UTF-8 string
group GActionGroup*
 

a GActionGroup, or NULL

 Can be NULL
 The data is owned by the caller of the function