Gets the label. The label has normally a mnemonic. To remove the mnemonic, there is the amtk_utils_remove_mnemonic() function.
Returns whether info
has been used (for example by an #AmtkFactory
function). See also amtk_action_info_store_check_all_used().
Mark info
as used. An #AmtkFactory function that uses an #AmtkActionInfo
should call this function. See amtk_action_info_store_check_all_used().
Increments the reference count of info
by one.
A function similar to gtk_application_set_accels_for_action().
accels
must not be %NULL, it must be a %NULL-terminated array, to be
consistent with gtk_application_set_accels_for_action().
a %NULL-terminated array of accelerators in the format understood by gtk_accelerator_parse().
Sets the action name, for example "win.save"
. Can be a detailed action
name, see g_action_parse_detailed_name().
the action name.
Sets the label with a mnemonic. To know how to encode the mnemonic, see the documentation of gtk_label_new_with_mnemonic().
the label (i.e. a short description), or %NULL.
Decrements the reference count of info
by one. If the reference count drops
to 0, info
is freed.
Creates a new #AmtkActionInfo from an #AmtkActionInfoEntry.
If translation_domain
is not %NULL, g_dgettext() is used to translate the
label
and tooltip
before setting them to the #AmtkActionInfo.
an #AmtkActionInfoEntry.
a gettext domain, or %NULL.
Returns the accelerators. This function never returns %NULL, it always returns a %NULL-terminated array, to be suitable for gtk_application_set_accels_for_action().