X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Fcallbacks.c;h=d30a490da2399f450e6b683dd00f1ff957011a30;hb=53ac91316921e188b4e778a7b766016d4a6dd2a2;hp=a9bdac212f730a5464da842e91fe9f16269daae6;hpb=962e2228963dbdec5d1b92b8c7d85989b941516e;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index a9bdac21..d30a490d 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -73,12 +73,6 @@ Tab* create_tab(MainWindow * mw, Tab *copy_tab, static void insert_viewer(GtkWidget* widget, lttvwindow_viewer_constructor constructor); -void checkbox_changed(GtkTreeView *treeview, - GtkTreePath *arg1, - GtkTreeViewColumn *arg2, - gpointer user_data); -void remove_trace_from_traceset_selector(GtkWidget * paned, unsigned i); -void add_trace_into_traceset_selector(GtkWidget * paned, LttTrace * trace); Tab *create_new_tab(GtkWidget* widget, gpointer user_data); static gboolean lttvwindow_process_pending_requests(Tab *tab); @@ -429,6 +423,10 @@ int SetTraceset(Tab * tab, LttvTraceset *traceset) time_change_manager(tab, new_time_window); current_time_change_manager(tab, new_current_time); + //FIXME : we delete the filter tree, when it should be updated. + lttv_filter_tree_destroy(tab->filter); + tab->filter = NULL; + #if 0 /* Set scrollbar */ GtkAdjustment *adjustment = gtk_range_get_adjustment(GTK_RANGE(tab->scrollbar)); @@ -1779,9 +1777,11 @@ void add_trace(GtkWidget * widget, gpointer user_data) * it will remove the trace, recreate the traceset_contex, * and redraws all the viewer of the current tab. If there is on trace in the * current traceset, it will delete all viewers of the current tab + * + * It destroys the filter tree. FIXME... we should request for an update + * instead. */ -// MD : no filter version. void remove_trace(GtkWidget *widget, gpointer user_data) { LttTrace *trace; @@ -4122,7 +4122,10 @@ Tab* create_tab(MainWindow * mw, Tab *copy_tab, /* Copy the previous tab's filter */ /* We can clone the filter, as we copy the trace set also */ /* The filter must always be in sync with the trace set */ - tab->filter = lttv_filter_clone(copy_tab->filter); + if(copy_tab->filter != NULL) + tab->filter = lttv_filter_clone(copy_tab->filter); + else + tab->filter = NULL; } else { tab->traceset_info->traceset = lttv_traceset_new();