diff options
| author | Jan Djärv | 2004-11-23 19:56:55 +0000 |
|---|---|---|
| committer | Jan Djärv | 2004-11-23 19:56:55 +0000 |
| commit | 255e4140a75aaa6567b3e9b4e64baeb3d1e7eaf3 (patch) | |
| tree | abe1e01c0f47fd570aa5cd79c82471bdf0b62b02 /src/xfns.c | |
| parent | 6f8a2742299b9c3518f87ad2baebfa19867997cc (diff) | |
| download | emacs-255e4140a75aaa6567b3e9b4e64baeb3d1e7eaf3.tar.gz emacs-255e4140a75aaa6567b3e9b4e64baeb3d1e7eaf3.zip | |
* 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 165ba37571d..aa66c017f3c 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -151,6 +151,10 @@ char *gray_bitmap_bits = gray_bits; | |||
| 151 | 151 | ||
| 152 | int display_hourglass_p; | 152 | int display_hourglass_p; |
| 153 | 153 | ||
| 154 | /* Non-zero means prompt with the old GTK file selection dialog. */ | ||
| 155 | |||
| 156 | int x_use_old_gtk_file_dialog; | ||
| 157 | |||
| 154 | /* The background and shape of the mouse pointer, and shape when not | 158 | /* The background and shape of the mouse pointer, and shape when not |
| 155 | over text or in the modeline. */ | 159 | over text or in the modeline. */ |
| 156 | 160 | ||
| @@ -5574,6 +5578,14 @@ such a font. This is especially effective for such large fonts as | |||
| 5574 | Chinese, Japanese, and Korean. */); | 5578 | Chinese, Japanese, and Korean. */); |
| 5575 | Vx_pixel_size_width_font_regexp = Qnil; | 5579 | Vx_pixel_size_width_font_regexp = Qnil; |
| 5576 | 5580 | ||
| 5581 | /* This is not ifdef:ed, so other builds than GTK can customize it. */ | ||
| 5582 | DEFVAR_BOOL ("x-use-old-gtk-file-dialog", &x_use_old_gtk_file_dialog, | ||
| 5583 | doc: /* *Non-nil means prompt with the old GTK file selection dialog. | ||
| 5584 | If nil or if the file selection dialog is not available, the new GTK file | ||
| 5585 | chooser is used instead. To turn off all file dialogs set the | ||
| 5586 | variable `use-file-dialog'. */); | ||
| 5587 | x_use_old_gtk_file_dialog = 0; | ||
| 5588 | |||
| 5577 | #ifdef USE_X_TOOLKIT | 5589 | #ifdef USE_X_TOOLKIT |
| 5578 | Fprovide (intern ("x-toolkit"), Qnil); | 5590 | Fprovide (intern ("x-toolkit"), Qnil); |
| 5579 | #ifdef USE_MOTIF | 5591 | #ifdef USE_MOTIF |
| @@ -5593,14 +5605,6 @@ Chinese, Japanese, and Korean. */); | |||
| 5593 | Fprovide (intern ("x-toolkit"), Qnil); | 5605 | Fprovide (intern ("x-toolkit"), Qnil); |
| 5594 | Fprovide (intern ("gtk"), Qnil); | 5606 | Fprovide (intern ("gtk"), Qnil); |
| 5595 | 5607 | ||
| 5596 | #ifdef HAVE_GTK_FILE_BOTH | ||
| 5597 | DEFVAR_BOOL ("use-old-gtk-file-dialog", &use_old_gtk_file_dialog, | ||
| 5598 | doc: /* *Non-nil means that the old GTK file selection dialog is used. | ||
| 5599 | If nil the new GTK file chooser is used instead. To turn off | ||
| 5600 | all file dialogs set the variable `use-file-dialog'. */); | ||
| 5601 | use_old_gtk_file_dialog = 0; | ||
| 5602 | #endif | ||
| 5603 | |||
| 5604 | DEFVAR_LISP ("gtk-version-string", &Vgtk_version_string, | 5608 | DEFVAR_LISP ("gtk-version-string", &Vgtk_version_string, |
| 5605 | doc: /* Version info for GTK+. */); | 5609 | doc: /* Version info for GTK+. */); |
| 5606 | { | 5610 | { |