event_viewer_data->last_event =
lttv_traceset_context_position_new(tsc);
- event_viewer_data->main_win_filter = NULL;
+ event_viewer_data->main_win_filter = lttvwindow_get_filter(tab);
event_viewer_data->update_cursor = TRUE;
/**
* Function to get the filter of the current tab.
- * @param main_win, the main window the viewer belongs to.
* @param filter, a pointer to a filter.
+ *
+ * returns the current filter
*/
-#if 0
LttvFilter *lttvwindow_get_filter(Tab *tab)
{
return tab->filter;
}
-#endif //0
/**
* Function to set the filter of the current tab.
gpointer hook_data);
+/**
+ * Function to get the current filter of the main window : useful at viewer
+ * instanciation.
+ *
+ * @param tab the tab the viewer belongs to.
+ *
+ * returns : the current filter.
+ */
+
+
+LttvFilter *lttvwindow_get_filter(Tab *tab);
+
/**
* Function to register a hook function for a viewer to set/update its
* current time.