gimp/gimp-help-fallback-en.patch

29 lines
738 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

revision 27500
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.
Index: app/widgets/gimphelp.c
===================================================================
--- app/widgets/gimphelp.c (revision 27499)
+++ app/widgets/gimphelp.c (revision 27500)
@@ -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);