* The name of the action. This is mostly meaningful for identifying
* the action once it has been added to a #GActionGroup.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_object_interface_install_property (iface,
g_param_spec_string ("name",
* The type of the parameter that must be given when activating the
* action.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_object_interface_install_property (iface,
g_param_spec_boxed ("parameter-type",
* If the action is disabled then calls to g_action_activate() and
* g_action_set_state() have no effect.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_object_interface_install_property (iface,
g_param_spec_boolean ("enabled",
* The #GVariantType of the state that the action has, or %NULL if the
* action is stateless.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_object_interface_install_property (iface,
g_param_spec_boxed ("state-type",
*
* The state of the action, or %NULL if the action is stateless.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_object_interface_install_property (iface,
g_param_spec_variant ("state",
*
* If the @value GVariant is floating, it is consumed.
*
- * Since: 2.26
+ * Since: 2.28
**/
void
g_action_set_state (GAction *action,
*
* Returns: (transfer full): the current state of the action
*
- * Since: 2.26
+ * Since: 2.28
**/
GVariant *
g_action_get_state (GAction *action)
*
* Returns: the name of the action
*
- * Since: 2.26
+ * Since: 2.28
**/
const gchar *
g_action_get_name (GAction *action)
*
* Returns: (allow-none): the parameter type
*
- * Since: 2.26
+ * Since: 2.28
**/
const GVariantType *
g_action_get_parameter_type (GAction *action)
*
* Returns: (allow-none): the state type, if the action is stateful
*
- * Since: 2.26
+ * Since: 2.28
**/
const GVariantType *
g_action_get_state_type (GAction *action)
*
* Returns: (transfer full): the state range hint
*
- * Since: 2.26
+ * Since: 2.28
**/
GVariant *
g_action_get_state_hint (GAction *action)
*
* Returns: whether the action is enabled
*
- * Since: 2.26
+ * Since: 2.28
**/
gboolean
g_action_get_enabled (GAction *action)
* the parameter type given at construction time). If the parameter
* type was %NULL then @parameter must also be %NULL.
*
- * Since: 2.26
+ * Since: 2.28
**/
void
g_action_activate (GAction *action,
* Signals that a new action was just added to the group. This signal
* is emitted after the action has been added and is now visible.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_action_group_signals[SIGNAL_ACTION_ADDED] =
g_signal_new (I_("action-added"),
* This signal is emitted before the action is removed, so the action
* is still visible and can be queried from the signal handler.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_action_group_signals[SIGNAL_ACTION_REMOVED] =
g_signal_new (I_("action-removed"),
*
* Signals that the enabled status of the named action has changed.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_action_group_signals[SIGNAL_ACTION_ENABLED_CHANGED] =
g_signal_new (I_("action-enabled-changed"),
*
* Signals that the state of the named action has changed.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_action_group_signals[SIGNAL_ACTION_STATE_CHANGED] =
g_signal_new (I_("action-state-changed"),
* Returns: (transfer full): a %NULL-terminated array of the names of the
* actions in the groupb
*
- * Since: 2.26
+ * Since: 2.28
**/
gchar **
g_action_group_list_actions (GActionGroup *action_group)
*
* Returns: whether the named action exists
*
- * Since: 2.26
+ * Since: 2.28
**/
gboolean
g_action_group_has_action (GActionGroup *action_group,
*
* Return value: the parameter type
*
- * Since: 2.26
+ * Since: 2.28
**/
const GVariantType *
g_action_group_get_action_parameter_type (GActionGroup *action_group,
*
* Returns: (transfer full): the state type, if the action is stateful
*
- * Since: 2.26
+ * Since: 2.28
**/
const GVariantType *
g_action_group_get_action_state_type (GActionGroup *action_group,
*
* Return value: (transfer full): the state range hint
*
- * Since: 2.26
+ * Since: 2.28
**/
GVariant *
g_action_group_get_action_state_hint (GActionGroup *action_group,
*
* Return value: whether or not the action is currently enabled
*
- * Since: 2.26
+ * Since: 2.28
**/
gboolean
g_action_group_get_action_enabled (GActionGroup *action_group,
*
* Return value: (allow-none): the current state of the action
*
- * Since: 2.26
+ * Since: 2.28
**/
GVariant *
g_action_group_get_action_state (GActionGroup *action_group,
*
* If the @value GVariant is floating, it is consumed.
*
- * Since: 2.26
+ * Since: 2.28
**/
void
g_action_group_change_action_state (GActionGroup *action_group,
* parameters then @parameter must be %NULL. See
* g_action_group_get_parameter_type().
*
- * Since: 2.26
+ * Since: 2.28
**/
void
g_action_group_activate_action (GActionGroup *action_group,
*
* This function should only be called by #GActionGroup implementations.
*
- * Since: 2.26
+ * Since: 2.28
**/
void
g_action_group_action_added (GActionGroup *action_group,
*
* This function should only be called by #GActionGroup implementations.
*
- * Since: 2.26
+ * Since: 2.28
**/
void
g_action_group_action_removed (GActionGroup *action_group,
*
* This function should only be called by #GActionGroup implementations.
*
- * Since: 2.26
+ * Since: 2.28
**/
void
g_action_group_action_enabled_changed (GActionGroup *action_group,
*
* This function should only be called by #GActionGroup implementations.
*
- * Since: 2.26
+ * Since: 2.28
**/
void
g_action_group_action_state_changed (GActionGroup *action_group,
* @parameter will always be of the expected type. In the event that
* an incorrect type was given, no signal will be emitted.
*
- * Since: 2.26
+ * Since: 2.28
*/
g_simple_action_signals[SIGNAL_ACTIVATE] =
g_signal_new (I_("activate"),
* The name of the action. This is mostly meaningful for identifying
* the action once it has been added to a #GSimpleActionGroup.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_object_class_install_property (object_class, PROP_NAME,
g_param_spec_string ("name",
* The type of the parameter that must be given when activating the
* action.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_object_class_install_property (object_class, PROP_PARAMETER_TYPE,
g_param_spec_boxed ("parameter-type",
* If the action is disabled then calls to g_simple_action_activate() and
* g_simple_action_set_state() have no effect.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_object_class_install_property (object_class, PROP_ENABLED,
g_param_spec_boolean ("enabled",
* The #GVariantType of the state that the action has, or %NULL if the
* action is stateless.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_object_class_install_property (object_class, PROP_STATE_TYPE,
g_param_spec_boxed ("state-type",
*
* The state of the action, or %NULL if the action is stateless.
*
- * Since: 2.26
+ * Since: 2.28
**/
g_object_class_install_property (object_class, PROP_STATE,
g_param_spec_variant ("state",
* An action must be enabled in order to be activated or in order to
* have its state changed from outside callers.
*
- * Since: 2.26
+ * Since: 2.28
**/
void
g_simple_action_set_enabled (GSimpleAction *simple,
*
* Returns: a new #GSimpleAction
*
- * Since: 2.26
+ * Since: 2.28
**/
GSimpleAction *
g_simple_action_new (const gchar *name,
*
* Returns: a new #GSimpleAction
*
- * Since: 2.26
+ * Since: 2.28
**/
GSimpleAction *
g_simple_action_new_stateful (const gchar *name,
*
* Returns: a new #GSimpleActionGroup
*
- * Since: 2.26
+ * Since: 2.28
**/
GSimpleActionGroup *
g_simple_action_group_new (void)
*
* Returns: (transfer none): a #GAction, or %NULL
*
- * Since: 2.26
+ * Since: 2.28
**/
GAction *
g_simple_action_group_lookup (GSimpleActionGroup *simple,
*
* The action group takes its own reference on @action.
*
- * Since: 2.26
+ * Since: 2.28
**/
void
g_simple_action_group_insert (GSimpleActionGroup *simple,
*
* If no action of this name is in the group then nothing happens.
*
- * Since: 2.26
+ * Since: 2.28
**/
void
g_simple_action_group_remove (GSimpleActionGroup *simple,