state update hooks are added by the main window
[lttv.git] / ltt / branches / poly / lttv / modules / gui / mainWin / src / callbacks.c
index 5440d6ecbfd2bad288adac29662dfc04388b9cbd..6abfd51cb6863ee9ea7f0f64fd8293696e4f270f 100644 (file)
@@ -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));
This page took 0.02289 seconds and 4 git commands to generate.