-}
-
-/**
- * Function to show each viewer in the current tab.
- * It will be called by main window, call show on each registered viewer,
- * will call process traceset and then it will
- * @param main_win the main window the viewer belongs to.
- */
-//FIXME Only one time request maximum for now!
-void show_viewer(MainWindow *main_win)
-{
- LttvAttributeValue value;
- LttvHooks * tmp;
- int i;
- LttvTracesetContext * tsc;
- Tab *tab = main_win->current_tab;
-
- if(tab == NULL) return ;
-
- tsc =(LttvTracesetContext*)tab->traceset_info->traceset_context;
-
- g_assert(lttv_iattribute_find_by_path(tab->attributes,
- "hooks/showviewer", LTTV_POINTER, &value));
- tmp = (LttvHooks*)*(value.v_pointer);
- if(tmp == NULL)
- {
- g_warning("The viewer(s) did not add any show hook");
- return;
- }
-
-
- // Call the show, where viewers add hooks to context and fill the
- // time and number of events requested it the time_requests GArray.
- lttv_hooks_call(tmp, NULL);
-
-