Add config.h support : will fix the LARGEFILE problem
[lttv.git] / ltt / branches / poly / lttv / modules / gui / detailedevents / events.c
index c6be6a015c7b2260c49a2b014dcb0217cf951c4e..129a3e538d33e93def14bcc979925a1b66852f3c 100644 (file)
  *           Inspired from original LTT, made by Karim Yaghmour
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <math.h>
 
 #include <glib.h>
@@ -53,6 +57,7 @@
 #include <lttv/hook.h>
 #include <lttv/tracecontext.h>
 #include <lttv/state.h>
+#include <lttv/filter.h>
 #include <lttvwindow/lttvwindow.h>
 
 #include "hGuiEventsInsert.xpm"
@@ -1336,7 +1341,7 @@ gboolean update_current_time(void * hook_data, void * call_data)
     list = event_viewer_data->event_fields_queue->head;
     data = (EventFields*)g_list_nth_data(list,0);
     data1 = (EventFields*)g_list_nth_data(list,event_viewer_data->event_fields_queue->length-1);
-
+#if 0
     //the event is in the buffer
     if(ltt_time_compare(data->time, *current_time)<=0 &&
        ltt_time_compare(data1->time, *current_time)>=0){
@@ -1367,10 +1372,11 @@ gboolean update_current_time(void * hook_data, void * call_data)
       //gtk_adjustment_value_changed(event_viewer_data->vadjust_c);
 
     }else{//the event is not in the buffer
+#endif //0
       LttTime start = ltt_time_sub(*current_time, time_span.start_time);
       double position = ltt_time_to_double(start);
       gtk_adjustment_set_value(event_viewer_data->vadjust_c, position);
-    }
+    //}
   }
 
   sprintf(str_path,"%d",count);
@@ -1388,7 +1394,7 @@ gboolean traceset_changed(void * hook_data, void * call_data)
   LttvTracesetContext * tsc =
         lttvwindow_get_traceset_context(event_viewer_data->tab);
   TimeInterval time_span = tsc->time_span;
-  
   LttTime end;
   remove_all_items_from_queue(event_viewer_data->event_fields_queue);
   gtk_list_store_clear(event_viewer_data->store_m);
This page took 0.023661 seconds and 4 git commands to generate.