From 53f7650947800f2d8858f8824d1d4bf7368b6192 Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 16 Sep 2005 17:12:29 +0000 Subject: [PATCH] file error dialog git-svn-id: http://ltt.polymtl.ca/svn@1218 04897980-b3bd-0310-b5e0-8ef037075253 --- .../modules/gui/lttvwindow/lttvwindow/callbacks.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 df02b66d..68613041 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -4526,6 +4526,17 @@ void create_main_window_with_trace(gchar *path) trace = ltt_trace_open(abs_path); if(trace == NULL) { g_warning("cannot open trace %s", abs_path); + + GtkWidget *dialogue = + gtk_message_dialog_new( + GTK_WINDOW(gtk_widget_get_toplevel(widget)), + GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_OK, + "Cannot open trace : maybe you should enter in the directory" + "to select it ?"); + gtk_dialog_run(GTK_DIALOG(dialogue)); + gtk_widget_destroy(dialogue); } else { trace_v = lttv_trace_new(trace); lttvwindowtraces_add_trace(trace_v); -- 2.34.1