X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Finit_module.c;h=94668d207a88eacf39c66e3d96b3f67df86c34e2;hb=b9ce0bad7daf7c0a2333c91fdb1e35d602afe17f;hp=5b8289570066bb12da936fdae51a7a92495ccee7;hpb=1e3594a344fc57ed19aed95efa9e27bedb287df4;p=lttv.git diff --git a/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c b/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c index 5b828957..94668d20 100644 --- a/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c +++ b/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c @@ -12,8 +12,8 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, - * MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ /* @@ -34,9 +34,11 @@ #include #include #include -#include + #include +#ifdef BABEL_CLEANUP #include +#endif /* BABEL_CLEANUP */ #include #include #include @@ -46,7 +48,6 @@ #include #include #include "callbacks.h" -#include __EXPORT LttvTraceInfo @@ -125,7 +126,7 @@ static gboolean window_creation_hook(void *hook_data, void *call_data) add_pixmap_directory ("../modules/gui/main/pixmaps"); /* First window, use command line trace */ - create_main_window_with_trace_list(g_init_trace, a_live); + create_main_window_with_trace_list(g_init_trace); gtk_main (); @@ -187,7 +188,7 @@ static void init() { g_assert((main_hooks = *(value.v_pointer)) != NULL); lttv_hooks_add(main_hooks, window_creation_hook, NULL, LTTV_PRIO_DEFAULT); - +#ifdef BABEL_CLEANUP { /* Register state calculator */ LttvHooks *hook_adder = lttv_hooks_new(); @@ -227,6 +228,7 @@ static void init() { after_request, NULL, NULL, hook_adder, hook_remover); } +#endif /* BABEL_CLEANUP */ } void @@ -267,4 +269,4 @@ static void destroy() { LTTV_MODULE("lttvwindow", "Viewer main window", \ "Viewer with multiple windows, tabs and panes for graphical modules", \ - init, destroy, "stats", "option", "sync") + init, destroy, "option","state")