diff options
author | Jan Djärv <[email protected]> | 2004-11-23 19:56:55 +0000 |
---|---|---|
committer | Jan Djärv <[email protected]> | 2004-11-23 19:56:55 +0000 |
commit | 255e4140a75aaa6567b3e9b4e64baeb3d1e7eaf3 (patch) | |
tree | abe1e01c0f47fd570aa5cd79c82471bdf0b62b02 /src/xfns.c | |
parent | 6f8a2742299b9c3518f87ad2baebfa19867997cc (diff) |
* gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
x-use-old-gtk-file-dialog.
* xfns.c: Define x_use_old_gtk_file_dialog.
(syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
outside ifdef USE_GTK.
Diffstat (limited to 'src/xfns.c')
-rw-r--r-- | src/xfns.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/xfns.c b/src/xfns.c index 165ba37571..aa66c017f3 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -151,6 +151,10 @@ char *gray_bitmap_bits = gray_bits; int display_hourglass_p; +/* Non-zero means prompt with the old GTK file selection dialog. */ + +int x_use_old_gtk_file_dialog; + /* The background and shape of the mouse pointer, and shape when not over text or in the modeline. */ @@ -5574,6 +5578,14 @@ such a font. This is especially effective for such large fonts as Chinese, Japanese, and Korean. */); Vx_pixel_size_width_font_regexp = Qnil; +/* This is not ifdef:ed, so other builds than GTK can customize it. */ + DEFVAR_BOOL ("x-use-old-gtk-file-dialog", &x_use_old_gtk_file_dialog, + doc: /* *Non-nil means prompt with the old GTK file selection dialog. +If nil or if the file selection dialog is not available, the new GTK file +chooser is used instead. To turn off all file dialogs set the +variable `use-file-dialog'. */); + x_use_old_gtk_file_dialog = 0; + #ifdef USE_X_TOOLKIT Fprovide (intern ("x-toolkit"), Qnil); #ifdef USE_MOTIF @@ -5593,14 +5605,6 @@ Chinese, Japanese, and Korean. */); Fprovide (intern ("x-toolkit"), Qnil); Fprovide (intern ("gtk"), Qnil); -#ifdef HAVE_GTK_FILE_BOTH - DEFVAR_BOOL ("use-old-gtk-file-dialog", &use_old_gtk_file_dialog, - doc: /* *Non-nil means that the old GTK file selection dialog is used. -If nil the new GTK file chooser is used instead. To turn off -all file dialogs set the variable `use-file-dialog'. */); - use_old_gtk_file_dialog = 0; -#endif - DEFVAR_LISP ("gtk-version-string", &Vgtk_version_string, doc: /* Version info for GTK+. */); { |