g_info("GUI ControlFlow Viewer init()");
/* Register the toolbar insert button */
- toolbar_item_reg(hGuiControlFlowInsert_xpm, "Insert Control Flow Viewer",
- h_guicontrolflow);
+ lttvwindow_register_toolbar(hGuiControlFlowInsert_xpm,
+ "Insert Control Flow Viewer", h_guicontrolflow);
/* Register the menu item insert entry */
- menu_item_reg("/", "Insert Control Flow Viewer", h_guicontrolflow);
+ lttvwindow_register_menu("/", "Insert Control Flow Viewer", h_guicontrolflow);
}
g_slist_free(g_control_flow_data_list);
/* Unregister the toolbar insert button */
- toolbar_item_unreg(h_guicontrolflow);
+ lttvwindow_unregister_toolbar(h_guicontrolflow);
/* Unregister the menu item insert entry */
- menu_item_unreg(h_guicontrolflow);
+ lttvwindow_unregister_menu(h_guicontrolflow);
}
}
redraw_viewer(mw_data,&time_window);
- set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
if(time_interval){
lttvwindow_report_time_window(mw_data,&t);
}
//update current tab
update_traceset(mw_data);
- get_traceset_time_span(mw_data,LTTV_TRACESET_CONTEXT(mw_data->current_tab->traceset_info->traceset_context)->Time_Span);
+ //get_traceset_time_span(mw_data,LTTV_TRACESET_CONTEXT(mw_data->current_tab->traceset_info->traceset_context)->Time_Span);
if(lttv_traceset_number(mw_data->current_tab->traceset_info->traceset) == 1 ||
ltt_time_compare(mw_data->current_tab->current_time,
LTTV_TRACESET_CONTEXT(mw_data->current_tab->traceset_info->traceset_context)->Time_Span->startTime)<0){
}
redraw_viewer(mw_data, &(mw_data->current_tab->time_window));
- set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
break;
case GTK_RESPONSE_REJECT:
case GTK_RESPONSE_CANCEL:
update_traceset(mw_data);
if(nb_trace > 1){
redraw_viewer(mw_data, &(mw_data->current_tab->time_window));
- set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
}else{
if(mw_data->current_tab){
while(mw_data->current_tab->multi_vpaned->num_children){
time_window.start_time = time_s;
}
redraw_viewer(mw_data, &time_window);
- set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
gtk_multi_vpaned_set_adjust(mw_data->current_tab->multi_vpaned, FALSE);
}
if(get_filter_selection(s, "Configure trace and tracefile filter", "Select traces and tracefiles")){
update_traceset(mw_data);
redraw_viewer(mw_data, &(mw_data->current_tab->time_window));
- set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
}
}