1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
/* Copyright 2013 Endless Mobile, Inc. */
#ifndef EOS_ACTION_MENU_H
#define EOS_ACTION_MENU_H
#include "eostypes.h"
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define EOS_TYPE_ACTION_MENU eos_action_menu_get_type()
#define EOS_ACTION_MENU(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
EOS_TYPE_ACTION_MENU, EosActionMenu))
#define EOS_ACTION_MENU_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), \
EOS_TYPE_ACTION_MENU, EosActionMenuClass))
#define EOS_IS_ACTION_MENU(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
EOS_TYPE_ACTION_MENU))
#define EOS_IS_ACTION_MENU_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
EOS_TYPE_ACTION_MENU))
#define EOS_ACTION_MENU_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
EOS_TYPE_ACTION_MENU, EosActionMenuClass))
typedef struct _EosActionMenu EosActionMenu;
typedef struct _EosActionMenuClass EosActionMenuClass;
typedef struct _EosActionMenuPrivate EosActionMenuPrivate;
struct _EosActionMenu
{
GtkFrame parent;
EosActionMenuPrivate *priv;
};
struct _EosActionMenuClass
{
GtkFrameClass parent_class;
};
GType eos_action_menu_get_type (void) G_GNUC_CONST;
GtkWidget *eos_action_menu_new ();
void eos_action_menu_add_action (EosActionMenu *menu,
GtkAction *action);
GtkAction *eos_action_menu_get_action (EosActionMenu *menu,
const gchar *name);
GList *eos_action_menu_list_actions (EosActionMenu *menu);
void eos_action_menu_remove_action (EosActionMenu *menu,
GtkAction *action);
void eos_action_menu_remove_action_by_name (EosActionMenu *menu,
const gchar *name);
G_END_DECLS
#endif /* EOS_ACTION_MENU_H */
|