put print fields in print.c
[lttv.git] / ltt / branches / poly / lttv / modules / gui / lttvwindow / lttvwindow / lttvwindowtraces.c
index 26a127052297ea1615d5a73ed34cfed71be366a3..511c6c93a618413e8f480becd987be6bf34f6390 100644 (file)
@@ -428,6 +428,11 @@ void lttvwindowtraces_background_notify_queue
                                 &value));
   slist = (GSList**)(value.v_pointer);
  
+  g_assert(lttv_iattribute_find(LTTV_IATTRIBUTE(attribute),
+                                LTTV_COMPUTATION_TRACESET_CONTEXT,
+                                LTTV_POINTER,
+                                &value));
+  LttvTracesetContext *tsc = (LttvTracesetContext*)(value.v_pointer);
 
   bg_notify = g_new(BackgroundNotify,1);
 
@@ -435,7 +440,7 @@ void lttvwindowtraces_background_notify_queue
   bg_notify->trace = trace;
   bg_notify->notify_time = notify_time;
   if(notify_position != NULL) {
-    bg_notify->notify_position = lttv_traceset_context_position_new();
+    bg_notify->notify_position = lttv_traceset_context_position_new(tsc);
     lttv_traceset_context_position_copy(bg_notify->notify_position,
                                         notify_position);
   } else {
@@ -477,13 +482,20 @@ void lttvwindowtraces_background_notify_current
                                 &value));
   slist = (GSList**)(value.v_pointer);
 
+  g_assert(lttv_iattribute_find(LTTV_IATTRIBUTE(attribute),
+                                LTTV_COMPUTATION_TRACESET_CONTEXT,
+                                LTTV_POINTER,
+                                &value));
+  LttvTracesetContext *tsc = (LttvTracesetContext*)(value.v_pointer);
+
+
   bg_notify = g_new(BackgroundNotify,1);
 
   bg_notify->owner = owner;
   bg_notify->trace = trace;
   bg_notify->notify_time = notify_time;
   if(notify_position!= NULL) {
-    bg_notify->notify_position = lttv_traceset_context_position_new();
+    bg_notify->notify_position = lttv_traceset_context_position_new(tsc);
     lttv_traceset_context_position_copy(bg_notify->notify_position,
                                         notify_position);
   } else {
This page took 0.024158 seconds and 4 git commands to generate.