X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Flttvwindow.h;h=773f7b5e9d1d7fc455962aa87d953d04cc34b05a;hb=e025a729300a06b0de77a8c63d7256fed2658ccb;hp=bc0521522b87ccb76ac8cf77300626ab7d36d311;hpb=3234f094e8b6c0bb98f4f8b6e611b3d4f7b4a649;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h index bc052152..773f7b5e 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h @@ -262,6 +262,8 @@ FIXME : explain other important events /* Module Related API */ +/* GQuark containing constructors of viewers in global attributes */ +extern GQuark LTTV_VIEWER_CONSTRUCTORS; /* constructor a the viewer */ typedef GtkWidget* (*lttvwindow_viewer_constructor)(Tab *tab); @@ -274,7 +276,8 @@ typedef GtkWidget* (*lttvwindow_viewer_constructor)(Tab *tab); * window. * * It should be called by init function of the module. - * + * + * @param name name of the viewer : mainly used as tag for constructor * @param menu_path path of the menu item. NULL : no menu entry. * @param menu_text text of the menu item. * @param pixmap Image shown on the toolbar item. NULL : no button. @@ -283,7 +286,8 @@ typedef GtkWidget* (*lttvwindow_viewer_constructor)(Tab *tab); */ void lttvwindow_register_constructor - (char * menu_path, + (char * name, + char * menu_path, char * menu_text, char ** pixmap, char * tooltip,