gthumb r2489 - in trunk: . libgthumb



Author: mjc
Date: Mon Jan  5 15:10:37 2009
New Revision: 2489
URL: http://svn.gnome.org/viewvc/gthumb?rev=2489&view=rev

Log:
2009-01-05  Michael J. Chudobiak  <mjc svn gnome org>

        * libgthumb/image-viewer.c: (load_image__step2):
        Simplify the previous commit, by not duplicating the already existing
        FileData.



Modified:
   trunk/ChangeLog
   trunk/libgthumb/image-viewer.c

Modified: trunk/libgthumb/image-viewer.c
==============================================================================
--- trunk/libgthumb/image-viewer.c	(original)
+++ trunk/libgthumb/image-viewer.c	Mon Jan  5 15:10:37 2009
@@ -1225,15 +1225,9 @@
 load_image__step2 (LoadImageData *lidata)
 {
 	ImageViewerPrivate* priv = IMAGE_VIEWER_GET_PRIVATE (lidata->viewer);
-	FileData *file;
-	
-	file = file_data_new (lidata->file->path);
-	
-	file_data_update_mime_type (file, FALSE);  /* always slow mime type ? */
-	image_loader_set_file (priv->loader, file);
-	
-	file_data_unref (file);
 	
+	file_data_update_mime_type (lidata->file, FALSE);  /* always slow mime type ? */
+	image_loader_set_file (priv->loader, lidata->file);
 	image_loader_start (priv->loader);
 	load_image_data_free (lidata);
 }



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