file error dialog
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 16 Sep 2005 17:12:29 +0000 (17:12 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 16 Sep 2005 17:12:29 +0000 (17:12 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1218 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c

index df02b66d072d8cfc2fc3ee629999389b46f28a97..68613041043e98f320463b476c63b79406fc95b2 100644 (file)
@@ -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);
This page took 0.025482 seconds and 4 git commands to generate.