if(!tab->events_request_pending)
{
- /* Redraw has +20 priority. We want a prio higher than that, so +19 */
- g_idle_add_full((G_PRIORITY_HIGH_IDLE + 19),
+ /* Redraw has +20 priority. We want to let the redraw be done while we do
+ * our job. */
+ g_idle_add_full((G_PRIORITY_HIGH_IDLE + 21),
(GSourceFunc)execute_events_requests,
tab,
NULL);
* shown time interval of the viewer and also be called by the constructor
* of the viewer.
* @param tab viewer's tab
- * @param time_interval a pointer where time interval will be stored.
+ * @return time window.
*/
-const TimeWindow *lttvwindow_get_time_window(Tab *tab)
+TimeWindow lttvwindow_get_time_window(Tab *tab)
{
- return &(tab->time_window);
+ return tab->time_window;
}
* It will be called by a viewer's hook function to update the
* current time/event of the viewer.
* @param tab viewer's tab
- * @param time a pointer where time will be stored.
+ * @return time
*/
-const LttTime *lttvwindow_get_current_time(Tab *tab)
+LttTime lttvwindow_get_current_time(Tab *tab)
{
- return &(tab->current_time);
+ return tab->current_time;
}