aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/file_dlg.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-08-31 09:22:57 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-08-31 09:22:57 +0000
commit7e5efbea7c5806b27fe0cf5230e0288dd745290e (patch)
treec7edb3fcfdffa40f995014a4526a49632411e7c8 /gtk/file_dlg.c
parent2bef1045731e2af4e04e43d31a95abfb4ba37225 (diff)
added a preference setting, to be able to change the preview timeout in the file open dialog (as requested by Ronnie Sahlberg).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11859 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/file_dlg.c')
-rw-r--r--gtk/file_dlg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/file_dlg.c b/gtk/file_dlg.c
index 87a2a5123a..9593e86b2f 100644
--- a/gtk/file_dlg.c
+++ b/gtk/file_dlg.c
@@ -113,7 +113,6 @@ static GtkWidget *file_save_as_w;
#endif
#define PREVIEW_STR_MAX 200
-#define PREVIEW_TIMEOUT_SECS 3
static double
secs_usecs( guint32 s, guint32 us)
@@ -235,7 +234,7 @@ preview_do(GtkWidget *prev, wtap *wth)
if(packets%1000) {
/* do we have a timeout? */
time(&time_current);
- if(time_current-time_preview >= PREVIEW_TIMEOUT_SECS) {
+ if(time_current-time_preview >= (time_t) prefs.gui_fileopen_preview) {
is_breaked = TRUE;
break;
}