static void control_flow_grab_focus(GtkWidget *widget, gpointer data){
ControlFlowData * control_flow_data = (ControlFlowData *)data;
MainWindow * mw = control_flow_data->mw;
- lttvwindow_report_focus(mw, gtk_widget_get_parent(control_flow_data->scrolled_window));
+ lttvwindow_report_focus(mw, control_flow_data->scrolled_window);
}
void tree_v_grab_focus(GtkWidget *widget, gpointer data){
EventViewerData *event_viewer_data = (EventViewerData *)data;
MainWindow * mw = event_viewer_data->mw;
- lttvwindow_report_focus(mw, gtk_widget_get_parent(event_viewer_data->hbox_v));
+ lttvwindow_report_focus(mw, event_viewer_data->hbox_v);
}
void update_raw_data_array(EventViewerData* event_viewer_data, unsigned size)
{
StatisticViewerData *statistic_viewer_data = (StatisticViewerData *)data;
MainWindow * mw = statistic_viewer_data->mw;
- lttvwindow_report_focus(mw, gtk_widget_get_parent(statistic_viewer_data->hpaned_v));
+ lttvwindow_report_focus(mw, statistic_viewer_data->hpaned_v);
}
static void