25 #if !defined (_HUD_H_INSIDE) && !defined (HUD_COMPILATION)
26 #error "Only <hud.h> can be included directly."
29 #ifndef __HUD_ACTION_PUBLISHER_H__
30 #define __HUD_ACTION_PUBLISHER_H__
36 #define HUD_TYPE_ACTION_PUBLISHER (hud_action_publisher_get_type ())
37 #define HUD_ACTION_PUBLISHER(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
38 HUD_TYPE_ACTION_PUBLISHER, HudActionPublisher))
39 #define HUD_IS_ACTION_PUBLISHER(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
40 HUD_TYPE_ACTION_PUBLISHER))
47 #define HUD_ACTION_PUBLISHER_SIGNAL_ACTION_GROUP_ADDED "action-group-added"
53 #define HUD_ACTION_PUBLISHER_SIGNAL_ACTION_GROUP_REMOVED "action-group-removed"
55 GType hud_action_description_get_type (
void);
57 #define HUD_TYPE_ACTION_DESCRIPTION (hud_action_description_get_type ())
58 #define HUD_ACTION_DESCRIPTION(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
59 HUD_TYPE_ACTION_DESCRIPTION, HudActionDescription))
60 #define HUD_IS_ACTION_DESCRIPTION(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
61 HUD_TYPE_ACTION_DESCRIPTION))
69 #define HUD_ACTION_PUBLISHER_NO_CONTEXT (NULL)
76 #define HUD_ACTION_PUBLISHER_ALL_WINDOWS (0)
79 typedef struct _HudActionPublisher HudActionPublisher;
103 GType hud_action_publisher_get_type (
void) G_GNUC_CONST;
105 HudActionPublisher * hud_action_publisher_new (guint window_id,
106 const gchar * context_id);
108 HudActionPublisher * hud_action_publisher_new_for_application (GApplication *application);
110 void hud_action_publisher_add_description (HudActionPublisher *publisher,
113 void hud_action_publisher_add_action_group (HudActionPublisher *publisher,
115 const gchar *object_path);
116 void hud_action_publisher_remove_action_group (HudActionPublisher *publisher,
118 GVariant *identifier);
119 guint hud_action_publisher_get_window_id (HudActionPublisher *publisher);
120 const gchar * hud_action_publisher_get_context_id (HudActionPublisher *publisher);
121 GList * hud_action_publisher_get_action_groups (HudActionPublisher *publisher);
122 const gchar * hud_action_publisher_get_description_path (HudActionPublisher *publisher);
126 GVariant *action_target);
132 const gchar *attribute_name,
135 const gchar *attribute_name,
136 const gchar *format_string,