From 909448db82cadca5baf22f024ec82c4c9fcceeba Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 30 Jul 2004 23:00:59 +0000 Subject: [PATCH] fix event request problem with main window : end time was incorrect git-svn-id: http://ltt.polymtl.ca/svn@655 04897980-b3bd-0310-b5e0-8ef037075253 --- .../poly/lttv/modules/gui/detailedevents/events.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c index 46a7ad79..5e27c17a 100644 --- a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c +++ b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c @@ -1094,8 +1094,11 @@ static void get_data_wrapped(double time_value, guint list_height, if(!event_fields) event_fields = (EventFields*)g_list_nth_data(first,0); time = ltt_time_sub(event_fields->time, time_span.start_time); event_viewer_data->vadjust_c->value = ltt_time_to_double(time) * NANOSECONDS_PER_SECOND; - g_signal_stop_emission_by_name(G_OBJECT(event_viewer_data->vadjust_c), "value-changed"); + //gtk_adjustment_set_value(event_viewer_data->vadjust_c, + // ltt_time_to_double(time) * NANOSECONDS_PER_SECOND); + //g_signal_stop_emission_by_name(G_OBJECT(event_viewer_data->vadjust_c), "value-changed"); event_viewer_data->previous_value = event_viewer_data->vadjust_c->value; + //gtk_adjustment_value_changed(event_viewer_data->vadjust_c); } } @@ -1491,9 +1494,13 @@ gboolean update_current_time(void * hook_data, void * call_data) } t = ltt_time_sub(data->time, time_span.start_time); event_viewer_data->vadjust_c->value = ltt_time_to_double(t) * NANOSECONDS_PER_SECOND; - g_signal_stop_emission_by_name(G_OBJECT(event_viewer_data->vadjust_c), "value-changed"); + //gtk_adjustment_set_value(event_viewer_data->vadjust_c, + // ltt_time_to_double(t) * NANOSECONDS_PER_SECOND); + //g_signal_stop_emission_by_name(G_OBJECT(event_viewer_data->vadjust_c), "value-changed"); event_viewer_data->previous_value = event_viewer_data->vadjust_c->value; - insert_data_into_model(event_viewer_data,j, j+event_viewer_data->num_visible_events); + insert_data_into_model(event_viewer_data,j, j+event_viewer_data->num_visible_events); + //gtk_adjustment_value_changed(event_viewer_data->vadjust_c); + }else{//the event is not in the buffer LttTime start = ltt_time_sub(*current_time, time_span.start_time); double position = ltt_time_to_double(start) * NANOSECONDS_PER_SECOND; @@ -1683,7 +1690,7 @@ void get_events(EventViewerData* event_viewer_data, LttTime start, event_viewer_data->event_hooks, NULL); - lttv_process_traceset_middle(tsc, ltt_time_infinite, max_num_events, NULL); + lttv_process_traceset_middle(tsc, end, max_num_events, NULL); //remove_context_hooks(event_viewer_data,tsc); lttv_process_traceset_end(tsc, -- 2.34.1