aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtkutil.c
diff options
context:
space:
mode:
authorJan Djärv2004-11-23 19:56:55 +0000
committerJan Djärv2004-11-23 19:56:55 +0000
commit255e4140a75aaa6567b3e9b4e64baeb3d1e7eaf3 (patch)
treeabe1e01c0f47fd570aa5cd79c82471bdf0b62b02 /src/gtkutil.c
parent6f8a2742299b9c3518f87ad2baebfa19867997cc (diff)
downloademacs-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/gtkutil.c')
-rw-r--r--src/gtkutil.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 25dd88d544e..759877f3950 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1122,10 +1122,6 @@ create_dialog (wv, select_cb, deactivate_cb)
1122/*********************************************************************** 1122/***********************************************************************
1123 File dialog functions 1123 File dialog functions
1124 ***********************************************************************/ 1124 ***********************************************************************/
1125#ifdef HAVE_GTK_FILE_BOTH
1126int use_old_gtk_file_dialog;
1127#endif
1128
1129/* Function that is called when the file dialog pops down. 1125/* Function that is called when the file dialog pops down.
1130 W is the dialog widget, RESPONSE is the response code. 1126 W is the dialog widget, RESPONSE is the response code.
1131 USER_DATA is what we passed in to g_signal_connect (pointer to int). */ 1127 USER_DATA is what we passed in to g_signal_connect (pointer to int). */
@@ -1311,7 +1307,9 @@ xg_get_file_name (f, prompt, default_filename, mustmatch_p, only_dir_p)
1311 xg_get_file_func func; 1307 xg_get_file_func func;
1312 1308
1313#ifdef HAVE_GTK_FILE_BOTH 1309#ifdef HAVE_GTK_FILE_BOTH
1314 if (use_old_gtk_file_dialog) 1310 extern int x_use_old_gtk_file_dialog;
1311
1312 if (x_use_old_gtk_file_dialog)
1315 w = xg_get_file_with_selection (f, prompt, default_filename, 1313 w = xg_get_file_with_selection (f, prompt, default_filename,
1316 mustmatch_p, only_dir_p, &func); 1314 mustmatch_p, only_dir_p, &func);
1317 else 1315 else