cheese r463 - in trunk: . src
- From: jhaitsma svn gnome org
- To: svn-commits-list gnome org
- Subject: cheese r463 - in trunk: . src
- Date: Fri, 1 Feb 2008 22:49:30 +0000 (GMT)
Author: jhaitsma
Date: Fri Feb 1 22:49:29 2008
New Revision: 463
URL: http://svn.gnome.org/viewvc/cheese?rev=463&view=rev
Log:
Make sure that filename variable is set before printing it Fixes bug #513573. Patch by Simon Holm Thogersen <odie cs aau dk> and Luca Ferretti <elle uca libero it>
Modified:
trunk/ChangeLog
trunk/src/cheese-thumb-view.c
Modified: trunk/src/cheese-thumb-view.c
==============================================================================
--- trunk/src/cheese-thumb-view.c (original)
+++ trunk/src/cheese-thumb-view.c Fri Feb 1 22:49:29 2008
@@ -91,8 +91,9 @@
mime_type = g_file_info_get_content_type (info);
factory = gnome_thumbnail_factory_new (GNOME_THUMBNAIL_SIZE_NORMAL);
-
uri = g_file_get_uri (file);
+ filename = g_file_get_path (file);
+
thumb_loc = gnome_thumbnail_factory_lookup (factory, uri, mtime.tv_sec);
if (!thumb_loc)
@@ -121,7 +122,6 @@
eog_thumbnail_add_frame (&pixbuf);
- filename = g_file_get_path (file);
gtk_list_store_append (priv->store, &iter);
gtk_list_store_set (priv->store, &iter, THUMBNAIL_PIXBUF_COLUMN,
pixbuf, THUMBNAIL_URL_COLUMN, filename, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]