From 2c780d67b8a22d75a2da4b2af21fd35f0c6f5236 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 17 May 2009 22:29:06 -0700 Subject: Handle disappearing serial devices Put up a dialog when the serial open fails, and shut down monitoring when the serial device disappears while running. Signed-off-by: Keith Packard --- aoview/aoview_log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'aoview/aoview_log.c') diff --git a/aoview/aoview_log.c b/aoview/aoview_log.c index a9300f61..0afdb64e 100644 --- a/aoview/aoview_log.c +++ b/aoview/aoview_log.c @@ -92,7 +92,8 @@ aoview_log_open_failed(char *name) "\"%s\"", utf8_file); if (utf8_file != name) g_free(utf8_file); - gtk_widget_show(GTK_WIDGET(log_fail_dialog)); + gtk_dialog_run(GTK_DIALOG(log_fail_dialog)); + gtk_widget_hide(GTK_WIDGET(log_fail_dialog)); aoview_log_failed = 1; } -- cgit v1.2.3