{
LttvTraceset *traceset = tab->traceset_info->traceset;
guint i;
+ guint num_traces = lttv_traceset_number(traceset);
//Verify if trace is already present.
- for(i=0; i<lttv_traceset_number(traceset); i++)
+ for(i=0; i<num_traces; i++)
{
LttvTrace * trace = lttv_traceset_get(traceset, i);
if(trace == trace_v)
GPtrArray *name;
guint nb,i;
gchar *module_name;
+ nb = lttv_library_module_number(library);
LttvModuleInfo *module_info = g_new(LttvModuleInfo,nb);
name = g_ptr_array_new();
- nb = lttv_library_module_number(library);
/* ask for the module name */
for(i=0;i<nb;i++){
if(module_name == NULL) return;
}
- lttv_module_release(module);
LttvModuleInfo module_info;
lttv_module_info(module, &module_info);
g_printf("Release module: %s\n", module_info.name);
+
+ lttv_module_release(module);
}
lower = adjust->lower;
upper = adjust->upper;
ratio = (value - lower) / (upper - lower);
- g_critical("lower %lu, upper %lu, value %lu, ratio %lu", lower, upper, value, ratio);
+ g_info("lower %lu, upper %lu, value %lu, ratio %lu", lower, upper, value, ratio);
//time = ltt_time_sub(time_span->end_time, time_span->start_time);
//time = ltt_time_mul(time, (float)ratio);
new_tab = create_tab(new_m_window, parent_tab, notebook, "Traceset");
} else {
new_tab = create_tab(new_m_window, NULL, notebook, "Traceset");
+ /* First window, use command line trace */
if(g_init_trace != NULL){
lttvwindow_add_trace(new_tab,
g_init_trace);
+
+ LttvTraceset *traceset = new_tab->traceset_info->traceset;
+ SetTraceset(new_tab, traceset);
}
}
tab->traceset_info->traceset = lttv_traceset_new();
}
-//FIXME : this is g_debug level
+#ifdef DEBUG
lttv_attribute_write_xml(
lttv_traceset_attribute(tab->traceset_info->traceset),
stdout,
0, 4);
fflush(stdout);
+#endif //DEBUG
//FIXME copy not implemented in lower level
tab->attributes = LTTV_IATTRIBUTE(g_object_new(LTTV_ATTRIBUTE_TYPE, NULL));
tab->interrupted_state = g_object_new(LTTV_ATTRIBUTE_TYPE, NULL);
- tab->vbox = gtk_vbox_new(FALSE, 0);
- tab->viewer_container = gtk_vbox_new(TRUE, 0);
+ tab->vbox = gtk_vbox_new(FALSE, 2);
+ tab->viewer_container = gtk_vbox_new(TRUE, 2);
tab->scrollbar = gtk_hscrollbar_new(NULL);
//tab->multivpaned = gtk_multi_vpaned_new();