extern GSList * g_main_window_list;
+gint lttvwindow_preempt_count = 0;
+
/* set_time_window
*
* It updates the time window of the tab, then calls the updatetimewindow
}
-
-
/**
* 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
*/
LttvFilter *lttvwindow_get_filter(Tab *tab)
{
- return tab->filter;
+ return g_object_get_data(G_OBJECT(tab->vbox), "filter");
}
/**
* @param main_win, the main window the viewer belongs to.
* @param filter, a pointer to a filter.
*/
-
void lttvwindow_report_filter(Tab *tab, LttvFilter *filter)
{
LttvAttributeValue value;
LttvHooks * tmp;
- lttv_filter_destroy(tab->filter);
- tab->filter = filter;
+ //lttv_filter_destroy(tab->filter);
+ //tab->filter = filter;
g_assert(lttv_iattribute_find_by_path(tab->attributes,
"hooks/updatefilter", LTTV_POINTER, &value));