summaryrefslogtreecommitdiff
path: root/src/gtkutil.c
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2005-12-28 10:47:55 +0000
committerJan Djärv <jan.h.d@swipnet.se>2005-12-28 10:47:55 +0000
commitba2a2ce5f65e79049357c053a27b6ca5a61f7a68 (patch)
treef802c3ba714ae452fd91ca6ab5095210299a314f /src/gtkutil.c
parent1703e3ff90a83454689662126d859682d863ea8a (diff)
downloademacs-ba2a2ce5f65e79049357c053a27b6ca5a61f7a68.tar.gz
* gtkutil.c (xg_get_file_with_chooser): Changed message shown
in file chooser.
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r--src/gtkutil.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 7e7687dd044..cb8e5a21860 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1285,20 +1285,11 @@ xg_get_file_with_chooser (f, prompt, default_filename,
g_signal_connect (G_OBJECT (wtoggle), "clicked",
G_CALLBACK (xg_toggle_visibility_cb), G_OBJECT(filewin));
-#ifdef HAVE_GTK_FILE_SELECTION_NEW
- strcpy (message, "If you find this file dialog inconvinient "
- "you can customize\n"
- "x-use-old-gtk-file-dialog to get the old file dialog,\n"
- "or you can customize use-file-dialog to disable file dialogs,\n"
- "or just use C-x C-f to open files.");
-#else
- strcpy (message, "If you find this file dialog inconvinient "
- "you can customize\n"
- "use-file-dialog to disable file dialogs,\n"
- "or just use C-x C-f to open files.");
-#endif
- if (action == GTK_FILE_CHOOSER_ACTION_OPEN)
- strcat (message, "\nUse C-l to bring up a text input area.");
+ message[0] = '\0';
+ if (action != GTK_FILE_CHOOSER_ACTION_SAVE)
+ strcat (message, "\nType C-l to display a file name text entry box.\n");
+ strcat (message, "\nIf you don't like this file selector, customize "
+ "use-file-dialog\nto turn it off, or type C-x C-f to visit files.");
wmessage = gtk_label_new (message);
gtk_widget_show (wmessage);