2 #ifndef __GXK_ACTION_H__
3 #define __GXK_ACTION_H__
10 #define GXK_ACTION_PRIORITY (G_PRIORITY_HIGH - 10)
14 typedef gboolean (*GxkActionCheck) (gpointer user_data,
16 guint64 action_stamp);
17 typedef void (*GxkActionExec) (gpointer user_data,
20 typedef struct GxkActionList GxkActionList;
23 gconstpointer action_data;
25 const gchar *accelerator;
28 const gchar *stock_icon;
33 const gchar *accelerator;
36 const gchar *stock_icon;
40 guint64 gxk_action_inc_cache_stamp (
void);
41 GxkActionList* gxk_action_list_create (
void);
42 GxkActionList* gxk_action_list_create_grouped (
GxkActionGroup *agroup);
43 void gxk_action_list_add_actions (GxkActionList *alist,
46 const gchar *i18n_domain,
47 GxkActionCheck acheck,
50 void gxk_action_list_add_translated (GxkActionList *alist,
53 const gchar *accelerator,
56 const gchar *stock_icon,
57 GxkActionCheck acheck,
60 GxkActionList* gxk_action_list_sort (GxkActionList *alist);
61 GxkActionList* gxk_action_list_merge (GxkActionList *alist1,
62 GxkActionList *alist2);
63 GxkActionList* gxk_action_list_copy (GxkActionList *alist);
64 guint gxk_action_list_get_n_actions (GxkActionList *alist);
65 void gxk_action_list_get_action (GxkActionList *alist,
68 void gxk_action_list_regulate_widget (GxkActionList *alist,
71 void gxk_action_list_force_regulate (GtkWidget *widget);
72 void gxk_action_list_free (GxkActionList *alist);
73 void gxk_action_activate_callback (gconstpointer action_data);
74 void gxk_widget_update_actions_upwards (gpointer widget);
75 void gxk_widget_update_actions_downwards (gpointer widget);
76 void gxk_widget_update_actions (gpointer widget);
79 void gxk_widget_publish_action_list (gpointer widget,
81 GxkActionList *alist);
82 GSList* gxk_widget_peek_action_widgets (gpointer widget,
85 void gxk_widget_publish_actions (gpointer widget,
89 const gchar *i18n_domain,
90 GxkActionCheck acheck,
92 void gxk_widget_publish_actions_grouped (gpointer widget,
97 const gchar *i18n_domain,
98 GxkActionCheck acheck,
100 void gxk_widget_publish_translated (gpointer widget,
104 const gchar *accelerator,
105 const gchar *tooltip,
107 const gchar *stock_icon,
108 GxkActionCheck acheck,
109 GxkActionExec aexec);
110 void gxk_widget_publish_grouped_translated (gpointer widget,
115 const gchar *accelerator,
116 const gchar *tooltip,
118 const gchar *stock_icon,
119 GxkActionCheck acheck,
120 GxkActionExec aexec);
121 void gxk_widget_republish_actions (gpointer widget,
123 gpointer source_widget);
124 typedef void (*GxkActionClient) (gpointer client_data,
127 GxkActionList *action_list,
128 GtkWidget *publisher);
129 void gxk_window_add_action_client (GtkWindow *window,
130 GxkActionClient added_func,
131 gpointer client_data);
132 void gxk_window_remove_action_client (GtkWindow *window,
133 gpointer client_data);
137 #define GXK_TYPE_ACTION_GROUP (gxk_action_group_get_type ())
138 #define GXK_ACTION_GROUP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_ACTION_GROUP, GxkActionGroup))
139 #define GXK_ACTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_ACTION_GROUP, GxkActionGroupClass))
140 #define GXK_IS_ACTION_GROUP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_ACTION_GROUP))
141 #define GXK_IS_ACTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_ACTION_GROUP))
142 #define GXK_ACTION_GROUP_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_ACTION_GROUP, GxkActionGroupClass))
144 GObject parent_instance;
147 guint invert_dups : 1;
150 GObjectClass parent_class;
153 GType gxk_action_group_get_type (
void);
Definition: gxkaction.hh:31
Definition: gxkaction.hh:149
Definition: gxkaction.hh:21
Definition: gxkaction.hh:143