aboutsummaryrefslogtreecommitdiffstats
path: root/progress_dlg.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-07-30 10:13:16 +0000
committerGuy Harris <guy@alum.mit.edu>2002-07-30 10:13:16 +0000
commite04fc7ebfd1fe50707dbde9f3e7589f7e4a61f90 (patch)
tree4bdf1240eef2657d8e6a567fdf978d202cae9c8c /progress_dlg.h
parent9c900f33eae3ec33fde8ae5eeed42d2c96c5f9b6 (diff)
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. svn path=/trunk/; revision=5916
Diffstat (limited to 'progress_dlg.h')
-rw-r--r--progress_dlg.h14
1 files changed, 13 insertions, 1 deletions
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 <gerald@zing.org>
@@ -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.
*/