gimp r25111 - in trunk: . plug-ins/uri



Author: neo
Date: Tue Mar 18 16:33:01 2008
New Revision: 25111
URL: http://svn.gnome.org/viewvc/gimp?rev=25111&view=rev

Log:
2008-03-18  Sven Neumann  <sven gimp org>

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


Modified:
   trunk/ChangeLog
   trunk/plug-ins/uri/uri-backend-gio.c

Modified: trunk/plug-ins/uri/uri-backend-gio.c
==============================================================================
--- trunk/plug-ins/uri/uri-backend-gio.c	(original)
+++ trunk/plug-ins/uri/uri-backend-gio.c	Tue Mar 18 16:33:01 2008
@@ -181,7 +181,8 @@
   /*  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 @@
           GimpRunMode   run_mode,
           GError      **error)
 {
-  GVfs        *vfs = g_vfs_get_default ();
+  GVfs        *vfs;
   GFile       *src_file;
   GFile       *dest_file;
   UriProgress  progress = { 0, };



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]