corrected last change.

2008-03-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-gio.c (uri_progress_callback):
	corrected last change.

svn path=/trunk/; revision=25111
This commit is contained in:
Sven Neumann 2008-03-18 16:33:01 +00:00 committed by Sven Neumann
parent 244b940b26
commit 89433fe929
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-03-18 Sven Neumann <sven@gimp.org>
* plug-ins/uri/uri-backend-gio.c (uri_progress_callback):
corrected last change.
2008-03-18 Sven Neumann <sven@gimp.org>
* app/config/gimpguiconfig.c (DEFAULT_WEB_BROWSER): changed

View file

@ -181,7 +181,8 @@ uri_progress_callback (goffset current_num_bytes,
/* update the progress only up to 10 times a second */
g_get_current_time (&now);
if (((now.tv_sec - progress->last_time.tv_sec) * 1000 +
if (progress->last_time.tv_sec &&
((now.tv_sec - progress->last_time.tv_sec) * 1000 +
(now.tv_usec - progress->last_time.tv_usec) / 1000) < 100)
return;
@ -270,7 +271,7 @@ copy_uri (const gchar *src_uri,
GimpRunMode run_mode,
GError **error)
{
GVfs *vfs = g_vfs_get_default ();
GVfs *vfs;
GFile *src_file;
GFile *dest_file;
UriProgress progress = { 0, };