From ca7f212d1342717fb06afc6a4ce22b98528bb234 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 30 Jul 2002 10:13:16 +0000 Subject: From Graeme Hewson: Ethereal sometimes creates a progress dialog bar and then, if the processing is fast, quickly destroys it. The resulting "flash" can be disconcerting. This set of patches ensures a progress bar is either not created or is displayed for a minimum time. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5916 f5534014-38df-0310-8fa8-9805f1628bb7 --- progress_dlg.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'progress_dlg.h') diff --git a/progress_dlg.h b/progress_dlg.h index b40a069c07..2afb7ef31a 100644 --- a/progress_dlg.h +++ b/progress_dlg.h @@ -1,7 +1,7 @@ /* progress_dlg.h * Definitions for progress dialog box routines * - * $Id: progress_dlg.h,v 1.1 2001/03/24 02:07:20 guy Exp $ + * $Id: progress_dlg.h,v 1.2 2002/07/30 10:13:14 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -48,6 +48,18 @@ typedef struct progdlg progdlg_t; progdlg_t *create_progress_dlg(const gchar *title, const gchar *stop_title, gboolean *stop_flag); +/* Create a progress dialog, but only if it's not likely to disappear + * immediately, which can be disconcerting for the user. + * + * The first three arguments are as for create_progress_dlg(). + * Following those is a pointer to a GTimeVal structure which holds + * the time at which the caller started to process the data, and the + * current progress (0..1). + */ +progdlg_t *delayed_create_progress_dlg(const gchar *title, + const gchar *stop_title, gboolean *stop_flag, GTimeVal *start_time, + gfloat progress); + /* * Set the percentage value of the progress bar. */ -- cgit v1.2.3