From 7b7d4a7915edf6aabe29e0e0045439b3d8086337 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Fri, 22 Sep 2006 08:19:55 +0000 Subject: [PATCH] * gtkutil.c (xg_get_file_with_chooser): Only chow C-l help for Gtk+ versions < 2.10. --- src/gtkutil.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gtkutil.c b/src/gtkutil.c index cdc87044c81..19fb8ef69a3 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -1382,7 +1382,9 @@ xg_get_file_with_chooser (f, prompt, default_filename, if (x_gtk_file_dialog_help_text) { message[0] = '\0'; - if (action != GTK_FILE_CHOOSER_ACTION_SAVE) + /* Gtk+ 2.10 has the file name text entry box integrated in the dialog. + Show the C-l help text only for versions < 2.10. */ + if (gtk_check_version(2, 10, 0) && 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, use the " "corresponding\nkey binding or customize " -- 2.39.2