X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Fmenu.h;h=ae519785c94646a71c544860f109f19630dfffc3;hb=42fcbb715d16ba7c2c0a37aab5add4bd64d96079;hp=3253bf7500c11c13fab5c726d74fc2f96a59e96b;hpb=b21c82b6a990f6be7fee4db796e593b407101863;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..ae519785 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.h @@ -21,14 +21,10 @@ #include -/* constructor of the viewer */ -//typedef GtkWidget* (*lttv_constructor)(void * main_window); - - typedef GArray LttvMenus; typedef struct _lttv_menu_closure { - lttv_constructor con; + lttvwindow_viewer_constructor con; char * menuPath; char * menuText; } lttv_menu_closure; @@ -38,9 +34,9 @@ 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); -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);