+
+
+
+
+void Update_Time_Window_Hook(void *hook_data, void *call_data)
+{
+ ControlFlowData *Control_Flow_Data = (ControlFlowData*) hook_data;
+ TimeWindow* Time_Window =
+ GuiControlFlow_get_Time_Window(Control_Flow_Data);
+ TimeWindow *New_Time_Window = ((TimeWindow*)call_data);
+
+ // As the time interval change will mostly be used for
+ // zoom in and out, it's not useful to keep old drawing
+ // sections, as scale will be changed.
+
+
+ *Time_Window = *New_Time_Window;
+ g_critical("New time window HOOK : %u, %u to %u, %u",
+ Time_Window->startTime.tv_sec,
+ Time_Window->startTime.tv_nsec,
+ Time_Window->Time_Width.tv_sec,
+ Time_Window->Time_Width.tv_nsec);
+
+ Drawing_Data_Request(Control_Flow_Data->Drawing,
+ &Control_Flow_Data->Drawing->Pixmap,
+ 0, 0,
+ Control_Flow_Data->Drawing->width,
+ Control_Flow_Data->Drawing->height);
+
+ Drawing_Refresh(Control_Flow_Data->Drawing,
+ 0, 0,
+ Control_Flow_Data->Drawing->width,
+ Control_Flow_Data->Drawing->height);
+
+}
+
+void Update_Current_Time_Hook(void *hook_data, void *call_data)
+{
+ ControlFlowData *Control_Flow_Data = (ControlFlowData*) hook_data;
+ LttTime* Current_Time =
+ GuiControlFlow_get_Current_Time(Control_Flow_Data);
+ *Current_Time = *((LttTime*)call_data);
+ g_critical("New Current time HOOK : %u, %u", Current_Time->tv_sec,
+ Current_Time->tv_nsec);
+
+ /* If current time is inside time interval, just move the highlight
+ * bar */
+
+ /* Else, we have to change the time interval. We have to tell it
+ * to the main window. */
+ /* The time interval change will take care of placing the current
+ * time at the center of the visible area */
+
+}
+