gimp r26536 - in trunk: . plug-ins/help
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26536 - in trunk: . plug-ins/help
- Date: Wed, 13 Aug 2008 19:19:50 +0000 (UTC)
Author: neo
Date: Wed Aug 13 19:19:50 2008
New Revision: 26536
URL: http://svn.gnome.org/viewvc/gimp?rev=26536&view=rev
Log:
2008-08-13 Sven Neumann <sven gimp org>
* plug-ins/help/gimphelplocale.c (gimp_help_locale_parse):
continue even if g_file_query_info() fails. We can't show proper
progress information then, but we can still attempt the
download.
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 19:19:50 2008
@@ -217,25 +217,18 @@
GFileInfo *info = g_file_query_info (file,
G_FILE_ATTRIBUTE_STANDARD_SIZE, 0,
cancellable, error);
- if (! info)
+ if (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);
}
-
- size = g_file_info_get_size (info);
-
- g_object_unref (info);
}
stream = g_file_read (file, cancellable, error);
if (! stream)
{
- locale_set_error (error,
+ locale_set_error (error,
_("Could not open '%s' for reading: %s"), file);
g_object_unref (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]