reverted the last change as g_file_query_info() is now also implemented on

2008-08-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/gimphelplocale.c (gimp_help_locale_parse):
	reverted the last change as g_file_query_info() is now also
	implemented on Win32.


svn path=/trunk/; revision=26537
This commit is contained in:
Sven Neumann
2008-08-13 20:42:34 +00:00
committed by Sven Neumann
parent f05d8a7328
commit 0293ea54a2
2 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2008-08-13 Sven Neumann <sven@gimp.org>
* plug-ins/help/gimphelplocale.c (gimp_help_locale_parse):
reverted the last change as g_file_query_info() is now also
implemented on Win32.
2008-08-13 Sven Neumann <sven@gimp.org>
* plug-ins/help/gimphelplocale.c (gimp_help_locale_parse):

View File

@ -217,11 +217,18 @@ gimp_help_locale_parse (GimpHelpLocale *locale,
GFileInfo *info = g_file_query_info (file,
G_FILE_ATTRIBUTE_STANDARD_SIZE, 0,
cancellable, error);
if (info)
if (! info)
{
size = g_file_info_get_size (info);
g_object_unref (info);
locale_set_error (error,
_("Could not open '%s' for reading: %s"), file);
g_object_unref (file);
return FALSE;
}
size = g_file_info_get_size (info);
g_object_unref (info);
}
stream = g_file_read (file, cancellable, error);