X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Fmenu.h;h=87ccdee45babc8311805d2c0f2e542e778d43e76;hb=c9ae5e4b6905d2ae6e4e46b981322de8e5386c65;hp=ae519785c94646a71c544860f109f19630dfffc3;hpb=42fcbb715d16ba7c2c0a37aab5add4bd64d96079;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 ae519785..87ccdee4 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.h @@ -19,24 +19,27 @@ #ifndef MENU_H #define MENU_H -#include +#include +#include + typedef GArray LttvMenus; -typedef struct _lttv_menu_closure { +typedef struct _LttvMenuClosure { lttvwindow_viewer_constructor con; - char * menuPath; - char * menuText; -} lttv_menu_closure; + char * menu_path; + char * menu_text; + GtkWidget *widget; +} LttvMenuClosure; LttvMenus *lttv_menus_new(); void lttv_menus_destroy(LttvMenus *h); -void lttv_menus_add(LttvMenus *h, lttvwindow_viewer_constructor f, char* menuPath, char * menuText); +LttvMenuClosure lttv_menus_add(LttvMenus *h, lttvwindow_viewer_constructor f, char* menuPath, char * menuText, GtkWidget *widget); -gboolean lttv_menus_remove(LttvMenus *h, lttvwindow_viewer_constructor f); +GtkWidget *lttv_menus_remove(LttvMenus *h, lttvwindow_viewer_constructor f); unsigned lttv_menus_number(LttvMenus *h);