summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2003-11-29 10:44:36 +0000
committerJan Djärv <jan.h.d@swipnet.se>2003-11-29 10:44:36 +0000
commit03d6484ea449799da1d223491c12d29204aa708a (patch)
treef70dd6e75ccc22f2bbb6cf64db8b9db81b1b58a2 /src/fileio.c
parent442d3fd0482e0db752c3de199d370d95f7c209c2 (diff)
downloademacs-03d6484ea449799da1d223491c12d29204aa708a.tar.gz
Add variable use-file-dialog to control use of file dialogs.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 9ed46109951..e586407cecc 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -134,6 +134,7 @@ extern int errno;
#include "commands.h"
extern int use_dialog_box;
+extern int use_file_dialog;
#ifndef O_WRONLY
#define O_WRONLY 1
@@ -6212,6 +6213,7 @@ provides a file dialog box. */)
#if defined (USE_MOTIF) || defined (HAVE_NTGUI) || defined (USE_GTK)
if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
&& use_dialog_box
+ && use_file_dialog
&& have_menus_p ())
{
/* If DIR contains a file name, split it. */