changeset 73048:4a83c4a89b5e

* gtkutil.c (xg_get_file_with_chooser): Only chow C-l help for Gtk+ versions < 2.10.
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 22 Sep 2006 08:19:55 +0000
parents 0eccd91da23e
children 5fe222b4d692
files src/gtkutil.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkutil.c	Fri Sep 22 08:19:43 2006 +0000
+++ b/src/gtkutil.c	Fri Sep 22 08:19:55 2006 +0000
@@ -1382,7 +1382,9 @@
   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 "