mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
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:
parent
244b940b26
commit
89433fe929
|
@ -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
|
||||
|
|
|
@ -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, };
|
||||
|
|
Loading…
Reference in a new issue