X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Flttvwindow.h;h=157ed164487cdacc57c6b9594654358d6efa24dd;hb=6550d71135aed5d81a76d7d5625757570bcf0819;hp=dc64bb4a2f83a485ba5f597f95433ed85b77dd46;hpb=88237536a72d70abfc670286eae1cf7c44c1a50b;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h index dc64bb4a..157ed164 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h @@ -658,13 +658,18 @@ void lttvwindow_events_request_remove_all(Tab *tab, /** - * Function to get the current time window of the current tab. - * - * @param tab the tab the viewer belongs to. - * @return the current tab's time interval. + * Function to get the current time interval shown on the current tab. + * It will be called by a viewer's hook function to update the + * shown time interval of the viewer and also be called by the constructor + * of the viewer. + * @param tab viewer's tab + * @return time window. */ -__inline__ TimeWindow lttvwindow_get_time_window(Tab *tab); +inline TimeWindow lttvwindow_get_time_window(Tab *tab) +{ + return tab->time_window; +} /**