X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Fdrawing.c;h=2a43501361047db10abf59f0f3caefbf02692652;hb=87658614c9344960bd07578fab23ad2169abb637;hp=2d05906c87c42ec8a5c7ef90c21a523c671df494;hpb=d287af9a8d4fd8f6d1937483c165aa52a7788d27;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c index 2d05906c..2a435013 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c @@ -107,6 +107,8 @@ void drawing_data_request(Drawing_t *drawing, LttvTracesetContext * tsc = get_traceset_context(control_flow_data->mw); + LttvTracesetState * tss = + (LttvTracesetState*)tsc; //send_test_process( //guicontrolflow_get_process_list(drawing->control_flow_data), @@ -138,19 +140,20 @@ void drawing_data_request(Drawing_t *drawing, //state_add_event_hooks_api(control_flow_data->mw); lttv_hooks_add(after_event, draw_after_hook, &event_request); - lttv_process_traceset_seek_time(tsc, start); + //lttv_process_traceset_seek_time(tsc, start); + lttv_state_traceset_seek_time_closest(tss, start); // FIXME : would like to place the after_traceset hook after the traceset, // but the traceset context state is not valid anymore. lttv_traceset_context_add_hooks(tsc, - // NULL, after_traceset, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, - NULL, after_traceset, NULL, event, after_event); + NULL, after_traceset, NULL, NULL, NULL, NULL, + //NULL, NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, event, after_event); lttv_process_traceset(tsc, end, G_MAXULONG); //after_data_request((void*)&event_request,(void*)tsc); lttv_traceset_context_remove_hooks(tsc, - //NULL, after_traceset, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, - NULL, after_traceset, NULL, event, after_event); + NULL, after_traceset, NULL, NULL, NULL, NULL, + // NULL, NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, event, after_event); //Modified by xiangxiu: state update hooks are removed by the main window //state_remove_event_hooks_api(control_flow_data->mw);