1 /*****************************************************************************
2 * Callbacks used for the viewer *
3 *****************************************************************************/
4 void expose_event_cb (GtkWidget
*widget
, GdkEventExpose
*expose
, gpointer data
)
6 ControlFlowData
*Control_Flow_Data
= (ControlFlowData
*)data
;
8 EventRequest
*Event_Request
= g_new(sizeof(EventRequest
));
10 Event_Request
->Control_Flow_Data
= Control_Flow_Data
;
12 /* Calculate, from pixels in expose, the time interval to get data */
14 get_time_from_pixels(expose
->area
.x
, expose
->area
.width
,
15 Control_Flow_Data
->Drawing_Area_Info
.width
,
16 &Control_Flow_Data
->Begin_Time
, &Control_Flow_Data
->End_Time
,
17 &Event_Request
->time_begin
, &Event_Request
->time_end
)
19 /* Look in statistics of the trace the processes present during the
20 * whole time interval _shown on the screen_. Modify the list of
21 * processes to match it. NOTE : modify, not recreate. If recreation is
22 * needed,keep a pointer to the currently selected event in the list.
25 /* Call the reading API to have events sent to drawing hooks */
26 lttv_trace_set_process( Control_Flow_Data
->Trace_Set
,
30 NULL
, //FIXME : filter here
31 Event_Request
->time_begin
,
32 Event_Request
->time_end
);
37 void v_scroll_cb (GtkAdjustment
*adjustment
, gpointer data
)
39 ControlFlowData
*Control_Flow_Data
= (ControlFlowData
*)data
;
40 GtkTreePath
*Tree_Path
;
42 g_critical("DEBUG : scroll signal, value : %f", adjustment
->value
);
44 //get_test_data((int)adjustment->value, Control_Flow_Data->Num_Visible_Events,
45 // Control_Flow_Data);
This page took 0.036488 seconds and 4 git commands to generate.