-
public void add_action (Action action)
Adds an action object to the action group. Note that this function does not set up the accel path of the
action, which can lead to problems if a user tries to modify the accelerator of a menuitem associated with the action. Therefore you
must either set the accel path yourself with set_accel_path, or use
gtk_action_group_add_action_with_accel (..., NULL).
-
public void add_action_with_accel (Action action, string? accelerator)
Adds an action object to the action group and sets up the accelerator.
-
public void add_actions (ActionEntry[] entries, void* user_data)
This is a convenience function to create a number of actions and add them to the action group.
-
public void add_actions_full (ActionEntry[] entries, void* user_data, DestroyNotify? destroy)
-
public void add_radio_actions (RadioActionEntry[] entries, int value, RadioActionCallback on_change)
This is a convenience routine to create a group of radio actions and add them to the action group.
-
public void add_radio_actions_full (RadioActionEntry[] entries, int value, RadioActionCallback on_change, DestroyNotify? destroy)
-
public void add_toggle_actions (ToggleActionEntry[] entries, void* user_data)
This is a convenience function to create a number of toggle actions and add them to the action group.
-
public void add_toggle_actions_full (ToggleActionEntry[] entries, void* user_data, DestroyNotify? destroy)
-
public virtual weak Action get_action (string action_name)
Looks up an action in the action group by name.
-
public bool get_sensitive ()
Returns true if the group is sensitive. The constituent actions can only be logically
sensitive (see is_sensitive) if they are sensitive (see
get_sensitive) and their group is sensitive.
-
public bool get_visible ()
Returns true if the group is visible. The constituent actions can only be logically visible
(see is_visible) if they are visible (see
get_visible) and their group is visible.
-
public List<weak Action> list_actions ()
Lists the actions in the action group.
-
public void remove_action (Action action)
Removes an action object from the action group.
-
public void set_sensitive (bool sensitive)
Changes the sensitivity of action_group
-
public void set_translate_func (owned TranslateFunc func)
Sets a function to be used for translating the label and tooltip of
GtkActionGroupEntrys added by add_actions.
-
public void set_translation_domain (string domain)
-
public void set_visible (bool visible)
Changes the visible of action_group.
-
public unowned string translate_string (string str)
Translates a string using the specified translate_func. This is mainly intended for
language bindings.