ee300ef7 |
1 | #ifndef MENU_H |
2 | #define MENU_H |
3 | |
4 | #include <lttv/common.h> |
5 | |
6 | /* constructor of the viewer */ |
7 | //typedef GtkWidget* (*lttv_constructor)(void * main_window); |
8 | |
9 | |
10 | typedef GArray LttvMenus; |
11 | |
12 | typedef struct _lttv_menu_closure { |
13 | lttv_constructor con; |
14 | char * menuPath; |
15 | char * menuText; |
16 | } lttv_menu_closure; |
17 | |
18 | |
19 | LttvMenus *lttv_menus_new(); |
20 | |
21 | void lttv_menus_destroy(LttvMenus *h); |
22 | |
23 | void lttv_menus_add(LttvMenus *h, lttv_constructor f, char* menuPath, char * menuText); |
24 | |
25 | gboolean lttv_menus_remove(LttvMenus *h, lttv_constructor f); |
26 | |
27 | unsigned lttv_menus_number(LttvMenus *h); |
28 | |
29 | #endif // MENU_H |