gimp r27501 - in branches/gimp-2-6: . app/widgets



Author: neo
Date: Fri Oct 31 20:01:24 2008
New Revision: 27501
URL: http://svn.gnome.org/viewvc/gimp?rev=27501&view=rev

Log:
2008-10-31  Sven Neumann  <sven gimp org>

	Bug 558660 â help behavior for locales without manual 
translation
	
	* app/widgets/gimphelp.c (gimp_help_user_manual_is_installed):
	as a fallback check for the english user manual.



Modified:
   branches/gimp-2-6/ChangeLog
   branches/gimp-2-6/app/widgets/gimphelp.c

Modified: branches/gimp-2-6/app/widgets/gimphelp.c
==============================================================================
--- branches/gimp-2-6/app/widgets/gimphelp.c	(original)
+++ branches/gimp-2-6/app/widgets/gimphelp.c	Fri Oct 31 20:01:24 2008
@@ -171,6 +171,15 @@
         }
 
       g_free (locales);
+
+      if (! found)
+        {
+          gchar *path = g_build_filename (basedir, "en", "gimp-help.xml", NULL);
+
+          found = g_file_test (path, G_FILE_TEST_IS_REGULAR);
+
+          g_free (path);
+        }
     }
 
   g_free (basedir);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]