X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Fmenu.h;h=952720e0f5459bc1eeee631536a6adccadafff5c;hb=001d8606bfda457ee644e2ad88449d8c3053f7ab;hp=3253bf7500c11c13fab5c726d74fc2f96a59e96b;hpb=754351700b3d5fb6112e72dd4722a546abc219f1;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.h b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.h index 3253bf75..952720e0 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.h @@ -20,27 +20,26 @@ #define MENU_H #include - -/* constructor of the viewer */ -//typedef GtkWidget* (*lttv_constructor)(void * main_window); +#include typedef GArray LttvMenus; -typedef struct _lttv_menu_closure { - lttv_constructor con; +typedef struct _LttvMenuClosure { + lttvwindow_viewer_constructor con; char * menuPath; char * menuText; -} lttv_menu_closure; + GtkWidget *widget; +} LttvMenuClosure; LttvMenus *lttv_menus_new(); void lttv_menus_destroy(LttvMenus *h); -void lttv_menus_add(LttvMenus *h, lttv_constructor f, char* menuPath, char * menuText); +void lttv_menus_add(LttvMenus *h, lttvwindow_viewer_constructor f, char* menuPath, char * menuText, GtkWidget *widget); -gboolean lttv_menus_remove(LttvMenus *h, lttv_constructor f); +gboolean lttv_menus_remove(LttvMenus *h, lttvwindow_viewer_constructor f); unsigned lttv_menus_number(LttvMenus *h);