X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2FmainWin%2Fsrc%2Fcallbacks.c;h=6abfd51cb6863ee9ea7f0f64fd8293696e4f270f;hb=540edb40ef20c2ce40132b3189e183d055dbe711;hp=5440d6ecbfd2bad288adac29662dfc04388b9cbd;hpb=6ba6ea42a5970c00d113dfcd4cb4afacbb523f6b;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c b/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c index 5440d6ec..6abfd51c 100644 --- a/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c @@ -323,9 +323,6 @@ void redraw_viewer(MainWindow * mw_data, TimeWindow * time_window) gdk_window_stick(win); gdk_window_unstick(win); - //lttv_state_add_event_hooks( - // (LttvTracesetState*)mw_data->current_tab->traceset_info->traceset_context); - //update time window of each viewer, let viewer insert hooks needed by process_traceset set_time_window(mw_data, time_window); @@ -335,9 +332,6 @@ void redraw_viewer(MainWindow * mw_data, TimeWindow * time_window) ltt_time_add(time_window->start_time,time_window->time_width), max_nb_events); - //lttv_state_remove_event_hooks( - // (LttvTracesetState*)mw_data->current_tab->traceset_info->traceset_context); - //call hooks to show each viewer and let them remove hooks show_viewer(mw_data); @@ -1726,6 +1720,9 @@ void * create_tab(MainWindow * parent, MainWindow* current_window, "Tab_Info", tmp_tab, (GDestroyNotify)tab_destructor); + + lttv_state_add_event_hooks( + (LttvTracesetState*)tmp_tab->traceset_info->traceset_context); gtk_notebook_append_page(notebook, (GtkWidget*)tmp_tab->multi_vpaned, tmp_tab->label); list = gtk_container_get_children(GTK_CONTAINER(notebook));