diff options
author | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-08-30 01:17:42 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-08-30 01:17:42 +0800 |
commit | 07f0c900d6ade15ceb7ef418aa0ea7dabd1909c4 (patch) | |
tree | ffa40aa822515f159aa944d613b711bc921e6522 /lib/egg/egg-action-group.h | |
parent | 322e9bc21fbd27e9ee920b1908d04ba4302381df (diff) | |
download | gsoc2013-epiphany-07f0c900d6ade15ceb7ef418aa0ea7dabd1909c4.tar gsoc2013-epiphany-07f0c900d6ade15ceb7ef418aa0ea7dabd1909c4.tar.gz gsoc2013-epiphany-07f0c900d6ade15ceb7ef418aa0ea7dabd1909c4.tar.bz2 gsoc2013-epiphany-07f0c900d6ade15ceb7ef418aa0ea7dabd1909c4.tar.lz gsoc2013-epiphany-07f0c900d6ade15ceb7ef418aa0ea7dabd1909c4.tar.xz gsoc2013-epiphany-07f0c900d6ade15ceb7ef418aa0ea7dabd1909c4.tar.zst gsoc2013-epiphany-07f0c900d6ade15ceb7ef418aa0ea7dabd1909c4.zip |
Part of gtk 2.3 port, changelog too long to paste it
Diffstat (limited to 'lib/egg/egg-action-group.h')
-rw-r--r-- | lib/egg/egg-action-group.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/lib/egg/egg-action-group.h b/lib/egg/egg-action-group.h deleted file mode 100644 index 2ee05dcec..000000000 --- a/lib/egg/egg-action-group.h +++ /dev/null @@ -1,71 +0,0 @@ -#ifndef EGG_ACTION_GROUP_H -#define EGG_ACTION_GROUP_H - -#include <gtk/gtk.h> -#include <egg-action.h> - -#define EGG_TYPE_ACTION_GROUP (egg_action_group_get_type ()) -#define EGG_ACTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_ACTION_GROUP, EggActionGroup)) -#define EGG_ACTION_GROUP_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), EGG_TYPE_ACTION_GROUP, EggActionGroupClass)) -#define EGG_IS_ACTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_ACTION_GROUP)) -#define EGG_IS_ACTION_GROUP_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), EGG_TYPE_ACTION_GROUP)) -#define EGG_ACTION_GROUP_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), EGG_TYPE_ACTION_GROUP, EggActionGroupClass)) - -typedef struct _EggActionGroup EggActionGroup; -typedef struct _EggActionGroupClass EggActionGroupClass; -typedef struct _EggActionGroupEntry EggActionGroupEntry; - -struct _EggActionGroup -{ - GObject parent; - - gchar *name; - GHashTable *actions; -}; - -struct _EggActionGroupClass -{ - GObjectClass parent_class; - - EggAction *(* get_action) (EggActionGroup *action_group, - const gchar *action_name); -}; - -typedef enum { - NORMAL_ACTION, - TOGGLE_ACTION, - RADIO_ACTION -} EggActionGroupEntryType; - -struct _EggActionGroupEntry { - gchar *name; - gchar *label; - gchar *stock_id; - gchar *accelerator; - gchar *tooltip; - - GCallback callback; - gpointer user_data; - - EggActionGroupEntryType entry_type; - gchar *extra_data; -}; - -GType egg_action_group_get_type (void); - -EggActionGroup *egg_action_group_new (const gchar *name); - -const gchar *egg_action_group_get_name (EggActionGroup *action_group); -EggAction *egg_action_group_get_action (EggActionGroup *action_group, - const gchar *action_name); -GList *egg_action_group_list_actions (EggActionGroup *action_group); -void egg_action_group_add_action (EggActionGroup *action_group, - EggAction *action); -void egg_action_group_remove_action (EggActionGroup *action_group, - EggAction *action); - -void egg_action_group_add_actions (EggActionGroup *action_group, - EggActionGroupEntry *entries, - guint n_entries); - -#endif |