From af22ae88e20b5da1cc8849ad887a50264564d168 Mon Sep 17 00:00:00 2001 From: compudj Date: Tue, 20 Jan 2009 17:15:47 +0000 Subject: [PATCH] update trace control git-svn-id: http://ltt.polymtl.ca/svn@3223 04897980-b3bd-0310-b5e0-8ef037075253 --- .../lttv/modules/gui/tracecontrol/tracecontrol.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/trunk/lttv/lttv/modules/gui/tracecontrol/tracecontrol.c b/trunk/lttv/lttv/modules/gui/tracecontrol/tracecontrol.c index a70deb2f..fe65143a 100644 --- a/trunk/lttv/lttv/modules/gui/tracecontrol/tracecontrol.c +++ b/trunk/lttv/lttv/modules/gui/tracecontrol/tracecontrol.c @@ -981,7 +981,19 @@ void stop_clicked (GtkButton *button, gpointer user_data) gtk_entry_get_text(GTK_ENTRY(tcd->trace_name_entry)); const gchar *lttd_path = ""; const gchar *fac_path = ""; + const gchar *trace_mode; + const gchar *trace_mode_sel; + GtkTreeIter iter; + gtk_combo_box_get_active_iter(GTK_COMBO_BOX(tcd->trace_mode_combo), &iter); + gtk_tree_model_get( + gtk_combo_box_get_model(GTK_COMBO_BOX(tcd->trace_mode_combo)), + &iter, 0, &trace_mode_sel, -1); + if(strcmp(trace_mode_sel, "normal") == 0) + trace_mode = "normal"; + else + trace_mode = "flight"; + const gchar *lttctl_path = gtk_entry_get_text(GTK_ENTRY(tcd->lttctl_path_entry)); gchar *trace_dir = gtk_entry_get_text(GTK_ENTRY(tcd->trace_dir_entry)); -- 2.34.1