diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2004-11-02 08:21:16 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2004-11-02 08:21:16 +0000 |
commit | 4bca77c1f5561288963152aa9078c33e7911d740 (patch) | |
tree | dcc6217e1004812f49fc256c04bf04f1c9680480 /src/lisp.h | |
parent | 8f9c687d2eb1ba26d5250fd459342e8080250486 (diff) | |
download | emacs-4bca77c1f5561288963152aa9078c33e7911d740.tar.gz |
* fileio.c (Fread_file_name): Pass Qt as fifth parameter to
Fx_file_dialog if only directories should be read.
* lisp.h: Fx_file_dialog takes 5 parameters.
* xfns.c (Fx_file_dialog): Both Motif and GTK version: Add
parameter only_dir_p.
In Motif version, don't put DEFAULT_FILENAME in filter part of the
dialog, just text field part. Do not add DEFAULT_FILENAME
to list of files if it isn't there.
In GTK version, pass only_dir_p parameter to xg_get_file_name.
* macfns.c (Fx_file_dialog): Add parameter only_dir_p. Check
only_dir_p instead of comparing prompt to "Dired". When using
a save dialog, add option kNavDontConfirmReplacement, change title
to "Enter name", change text for save button to "Ok".
* w32fns.c (Fx_file_dialog): Add parameter only_dir_p. Check
only_dir_p instead of comparing prompt to "Dired".
* gtkutil.c (xg_get_file_with_chooser)
(xg_get_file_with_selection): New functions, only defined ifdef
HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
respectively.
(xg_get_file_name): Add parameter only_dir_p.
Call xg_get_file_with_chooser or xg_get_file_with_selection
depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
(xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
* gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
Diffstat (limited to 'src/lisp.h')
-rw-r--r-- | src/lisp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h index 49d6fa9219d..daf23a05f54 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -3121,7 +3121,7 @@ extern void syms_of_xfns P_ ((void)); #ifdef HAVE_WINDOW_SYSTEM /* Defined in xfns.c, w32fns.c, or macfns.c */ EXFUN (Fxw_display_color_p, 1); -EXFUN (Fx_file_dialog, 4); +EXFUN (Fx_file_dialog, 5); #endif /* HAVE_WINDOW_SYSTEM */ /* Defined in xsmfns.c */ |