diff options
author | Keith Packard <keithp@keithp.com> | 2009-05-17 22:29:06 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-05-17 22:29:06 -0700 |
commit | 2c780d67b8a22d75a2da4b2af21fd35f0c6f5236 (patch) | |
tree | d41ddf8f23cf21c19b1d9d792e27a13f4c358424 /aoview/aoview_log.c | |
parent | 69616104813fc5ba89fb3128d04fb9328961c59c (diff) |
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 <keithp@keithp.com>
Diffstat (limited to 'aoview/aoview_log.c')
-rw-r--r-- | aoview/aoview_log.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |