mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
Add g_simple_action_group_add_entries()
A convenience API for creating lots of actions quickly.
This commit is contained in:
committed by
Javier Jardon
parent
695a9a7993
commit
7dd25022ee
@@ -45,6 +45,8 @@ G_BEGIN_DECLS
|
||||
typedef struct _GSimpleActionGroupPrivate GSimpleActionGroupPrivate;
|
||||
typedef struct _GSimpleActionGroupClass GSimpleActionGroupClass;
|
||||
|
||||
typedef struct _GActionEntry GActionEntry;
|
||||
|
||||
/**
|
||||
* GSimpleActionGroup:
|
||||
*
|
||||
@@ -82,6 +84,27 @@ void g_simple_action_group_insert (GSimple
|
||||
void g_simple_action_group_remove (GSimpleActionGroup *simple,
|
||||
const gchar *action_name);
|
||||
|
||||
struct _GActionEntry
|
||||
{
|
||||
const gchar *name;
|
||||
|
||||
void (* activate) (GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
const gchar *parameter_type;
|
||||
|
||||
const gchar *state;
|
||||
|
||||
/*< private >*/
|
||||
gsize padding[4];
|
||||
};
|
||||
|
||||
void g_simple_action_group_add_entries (GSimpleActionGroup *simple,
|
||||
const GActionEntry *entries,
|
||||
gint n_entries,
|
||||
gpointer user_data);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_SIMPLE_ACTION_GROUP_H__ */
|
||||
|
Reference in New Issue
Block a user