Make the "start_time" argument to "delayed_create_progress_dlg()" a
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 28 Aug 2002 22:28:43 +0000 (22:28 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 28 Aug 2002 22:28:43 +0000 (22:28 +0000)
pointer to const, to emphasize that it does *not* modify the time
pointed to by the argument.

Make the initial delay for delayed progress bars 1/10 second rather than
1/2 second, as a 1/2 second delay is noticeable, especially when loading
a file for the first time (as the main window looks a bit blank).  Even
at 1/10 second you can still notice it, but it's not *as* noticeable.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6118 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/progress_dlg.c
progress_dlg.h

index 64943569740a549106a62c91f566a3c746bca92e..49cc0e6154423344a06c827dfaeb84a6e71d8447 100644 (file)
@@ -1,7 +1,7 @@
 /* progress_dlg.c
  * Routines for progress-bar (modal) dialog
  *
- * $Id: progress_dlg.c,v 1.13 2002/08/28 21:03:49 jmayer Exp $
+ * $Id: progress_dlg.c,v 1.14 2002/08/28 22:28:43 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -219,15 +219,15 @@ create_progress_dlg(const gchar *task_title, const gchar *item_title, const gcha
 
 progdlg_t *
 delayed_create_progress_dlg(const gchar *task_title, const gchar *item_title,
-                                                       const gchar *stop_title, gboolean *stop_flag,
-                                                       GTimeVal *start_time, gfloat progress)
+                           const gchar *stop_title, gboolean *stop_flag,
+                           const GTimeVal *start_time, gfloat progress)
 {
   GTimeVal    time_now;
   gfloat      delta_time;
   gfloat      min_display;
-  progdlg_t      *dlg;
+  progdlg_t   *dlg;
 
-#define INIT_DELAY          0.5 * 1e6
+#define INIT_DELAY          0.1 * 1e6
 #define MIN_DISPLAY_DEFAULT 2.0 * 1e6
 
 /* Create a progress dialog, but only if it's not likely to disappear
index 33b26e0e45b31f7f1dbca6439fdd1ac2b74164ed..a2dc6d9fb7ec5e86f9e418193509ea1d3fb7ebbc 100644 (file)
@@ -1,7 +1,7 @@
 /* progress_dlg.h
  * Definitions for progress dialog box routines
  *
- * $Id: progress_dlg.h,v 1.4 2002/08/28 21:00:41 jmayer Exp $
+ * $Id: progress_dlg.h,v 1.5 2002/08/28 22:28:42 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -58,7 +58,7 @@ progdlg_t *create_progress_dlg(const gchar *task_title, const gchar *item_title,
  */
 progdlg_t *
 delayed_create_progress_dlg(const gchar *task_title, const gchar *item_title,
-    const gchar *stop_title, gboolean *stop_flag, GTimeVal *start_time,
+    const gchar *stop_title, gboolean *stop_flag, const GTimeVal *start_time,
     gfloat progress);
 
 /*