diff src/fileio.c @ 53189:2c1d6f1a791e

Add variable use-file-dialog to control use of file dialogs.
author Jan Djärv <jan.h.d@swipnet.se>
date Sat, 29 Nov 2003 10:44:36 +0000
parents 695cf19ef79e
children d6ab4f5d0c6f
line wrap: on
line diff
--- a/src/fileio.c	Fri Nov 28 23:07:13 2003 +0000
+++ b/src/fileio.c	Sat Nov 29 10:44:36 2003 +0000
@@ -134,6 +134,7 @@
 
 #include "commands.h"
 extern int use_dialog_box;
+extern int use_file_dialog;
 
 #ifndef O_WRONLY
 #define O_WRONLY 1
@@ -6212,6 +6213,7 @@
 #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.  */