[maemo-commits] [maemo-commits] r17493 - in projects/haf/trunk/hildon-thumbnail: . thumbs

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Feb 23 15:42:48 EET 2009
Author: pvanhoof
Date: 2009-02-23 15:42:40 +0200 (Mon, 23 Feb 2009)
New Revision: 17493

Modified:
   projects/haf/trunk/hildon-thumbnail/ChangeLog
   projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-factory.c
Log:
        * thumbs/hildon-thumbnail-factory.c: Bugfix for Bug# 102446



Modified: projects/haf/trunk/hildon-thumbnail/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-thumbnail/ChangeLog	2009-02-23 13:00:55 UTC (rev 17492)
+++ projects/haf/trunk/hildon-thumbnail/ChangeLog	2009-02-23 13:42:40 UTC (rev 17493)
@@ -1,6 +1,7 @@
 2009-02-23  Philip Van Hoof  <pvanhoof at codeminded.be>
 
 	* debian/hildon-thumbnail.install: Re-enabled the GStreamer plugin
+	* thumbs/hildon-thumbnail-factory.c: Bugfix for Bug# 102446
 
 2009-02-18  Philip Van Hoof  <pvanhoof at codeminded.be>
 

Modified: projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-factory.c
===================================================================
--- projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-factory.c	2009-02-23 13:00:55 UTC (rev 17492)
+++ projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-factory.c	2009-02-23 13:42:40 UTC (rev 17493)
@@ -1041,23 +1041,23 @@
 		if (g_file_query_exists (fcropped, NULL))
 			path = g_strdup (local_cropped);
 		else 
-			path = g_strdup (cropped);
+			path = g_filename_to_uri(cropped, NULL, NULL);
 		g_object_unref (fcropped);
 
 	} else if (width <= 128 || height <= 128) {
 
 		GFile *fnormal = g_file_new_for_uri (local_normal);
 		if (g_file_query_exists (fnormal, NULL))
-			path = g_strdup_printf ("file://%s", local_normal);
+			path = g_filename_to_uri (local_normal, NULL, NULL);
 		else 
-			path = g_strdup_printf ("file://%s", normal);
+			path = g_filename_to_uri (normal, NULL, NULL);
 		g_object_unref (fnormal);
 	} else {
 		GFile *flarge = g_file_new_for_uri (local_large);
 		if (g_file_query_exists (flarge, NULL))
 			path = g_strdup (local_large);
 		else 
-			path = g_strdup_printf ("file://%s", large);
+			path = g_filename_to_uri (large, NULL, NULL);
 		g_object_unref (flarge);
 	}
 


More information about the maemo-commits mailing list