Split the synchronization code into modules
[lttv.git] / lttv / modules / gui / lttvwindow / lttvwindow / callbacks.c
index 565cec17a76d5876b3eea4395be020d0e483ed0e..53681f48bb4dbb775b1509bd8307a15c982c2632 100644 (file)
@@ -39,6 +39,7 @@
 #include <lttv/iattribute.h>
 #include <lttv/stats.h>
 #include <lttv/filter.h>
+#include <lttv/sync/sync_chain.h>
 #include <lttvwindow/mainwindow.h>
 #include <lttvwindow/mainwindow-private.h>
 #include <lttvwindow/menu.h>
@@ -467,6 +468,8 @@ int SetTraceset(Tab * tab, LttvTraceset *traceset)
 {
   LttvTracesetContext *tsc =
         LTTV_TRACESET_CONTEXT(tab->traceset_info->traceset_context);
+
+  syncTraceset(tsc);
   TimeInterval time_span = tsc->time_span;
   TimeWindow new_time_window = tab->time_window;
   LttTime new_current_time = tab->current_time;
@@ -551,15 +554,16 @@ int SetTraceset(Tab * tab, LttvTraceset *traceset)
   LttvHooks * tmp;
   LttvAttributeValue value;
   gint retval = 0;
-
  
   retval= lttv_iattribute_find_by_path(tab->attributes,
     "hooks/updatetraceset", LTTV_POINTER, &value);
   g_assert(retval);
 
   tmp = (LttvHooks*)*(value.v_pointer);
-  if(tmp == NULL) retval = 1;
-  else lttv_hooks_call(tmp,traceset);
+  if(tmp == NULL)
+         retval = 1;
+  else
+         lttv_hooks_call(tmp,traceset);
 
   time_change_manager(tab, new_time_window);
   current_time_change_manager(tab, new_current_time);
This page took 0.022663 seconds and 4 git commands to generate.