gimp r26537 - in trunk: . plug-ins/help
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26537 - in trunk: . plug-ins/help
- Date: Wed, 13 Aug 2008 20:42:34 +0000 (UTC)
Author: neo
Date: Wed Aug 13 20:42:34 2008
New Revision: 26537
URL: http://svn.gnome.org/viewvc/gimp?rev=26537&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/plug-ins/help/gimphelplocale.c
Modified: trunk/plug-ins/help/gimphelplocale.c
==============================================================================
--- trunk/plug-ins/help/gimphelplocale.c (original)
+++ trunk/plug-ins/help/gimphelplocale.c Wed Aug 13 20:42:34 2008
@@ -217,11 +217,18 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]