request servicing fix
[lttv.git] / ltt / branches / poly / lttv / modules / gui / lttvwindow / lttvwindow / lttvwindow.c
index cac8e12600c09d3156cafa8ee0c6717f5cd26bab..3b11176e3d86d936881feef15f355bf462a21b3e 100644 (file)
@@ -851,8 +851,9 @@ void lttvwindow_events_request(Tab *tab,
   
   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);
@@ -904,12 +905,12 @@ void lttvwindow_events_request_remove_all(Tab       *tab,
  * 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;
   
 }
 
@@ -919,12 +920,12 @@ const TimeWindow *lttvwindow_get_time_window(Tab *tab)
  * 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;
 }
 
 
This page took 0.023269 seconds and 4 git commands to generate.