| Top |
| GtefActionInfo * | gtef_action_info_new () |
| GtefActionInfo * | gtef_action_info_new_from_entry () |
| GtefActionInfo * | gtef_action_info_copy () |
| void | gtef_action_info_free () |
| const gchar * | gtef_action_info_get_action_name () |
| void | gtef_action_info_set_action_name () |
| const gchar * | gtef_action_info_get_icon_name () |
| void | gtef_action_info_set_icon_name () |
| const gchar * | gtef_action_info_get_label () |
| void | gtef_action_info_set_label () |
| const gchar * | gtef_action_info_get_tooltip () |
| void | gtef_action_info_set_tooltip () |
| const gchar * const * | gtef_action_info_get_accels () |
| void | gtef_action_info_set_accels () |
A GtefActionInfo instance contains a set of information about a GAction. Those pieces of information are useful to create UI elements that trigger the GAction, for example a menu item or a toolbar item.
GtefActionInfo * gtef_action_info_new_from_entry (const GtefActionInfoEntry *info_entry,const gchar *translation_domain);
Creates a new GtefActionInfo from a GtefActionInfoEntry.
If translation_domain
is not NULL, g_dgettext() is used to translate the
label
and tooltip
before setting them to the GtefActionInfo.
Since: 2.0
GtefActionInfo *
gtef_action_info_copy (const GtefActionInfo *info);
Since: 2.0
const gchar *
gtef_action_info_get_action_name (const GtefActionInfo *info);
Since: 2.0
void gtef_action_info_set_action_name (GtefActionInfo *info,const gchar *action_name);
Since: 2.0
const gchar *
gtef_action_info_get_icon_name (const GtefActionInfo *info);
Since: 2.0
void gtef_action_info_set_icon_name (GtefActionInfo *info,const gchar *icon_name);
Since: 2.0
const gchar *
gtef_action_info_get_label (const GtefActionInfo *info);
Since: 2.0
void gtef_action_info_set_label (GtefActionInfo *info,const gchar *label);
Since: 2.0
const gchar *
gtef_action_info_get_tooltip (const GtefActionInfo *info);
Since: 2.0
void gtef_action_info_set_tooltip (GtefActionInfo *info,const gchar *tooltip);
Since: 2.0
const gchar * const *
gtef_action_info_get_accels (const GtefActionInfo *info);
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().
a NULL-terminated array
of accelerators in the format understood by gtk_accelerator_parse().
[transfer none][array zero-terminated=1]
Since: 2.0
void gtef_action_info_set_accels (GtefActionInfo *info,const gchar * const *accels);
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().
info |
||
accels |
a |
[array zero-terminated=1] |
Since: 2.0
typedef struct {
const gchar *action_name;
const gchar *icon_name;
const gchar *label;
const gchar *accel;
const gchar *tooltip;
} GtefActionInfoEntry;
This struct defines a set of information for a single action. It is for use
with gtef_action_info_store_add_entries().
Like GActionEntry, it is permissible to use an incomplete initialiser in
order to leave some of the later values as NULL. Additional optional fields
may be added in the future.
const gchar * |
the action name. |
|
const gchar * |
the icon name, or |
|
const gchar * |
the label (i.e. a short description), or |
|
const gchar * |
the accelerator, in the format understood by |
|
const gchar * |
the tooltip (i.e. a long description), or |
Since: 2.0