[Rawstudio-commit] r2012 - trunk/src
Anders Brander
anders at brander.dk
Wed Sep 17 10:32:18 CEST 2008
Author: abrander
Date: 2008-09-17 10:32:18 +0200 (Wed, 17 Sep 2008)
New Revision: 2012
Modified:
trunk/src/rs-store.c
Log:
Now stores RSMetadata for each photo in the thumbnail browser.
Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c 2008-09-17 08:30:41 UTC (rev 2011)
+++ trunk/src/rs-store.c 2008-09-17 08:32:18 UTC (rev 2012)
@@ -55,6 +55,7 @@
FULLNAME_COLUMN, /* Full path to image */
PRIORITY_COLUMN,
EXPORTED_COLUMN,
+ METADATA_COLUMN, /* RSMetadata for image */
TYPE_COLUMN,
GROUP_LIST_COLUMN,
NUM_COLUMNS
@@ -194,6 +195,7 @@
G_TYPE_STRING,
G_TYPE_INT,
G_TYPE_BOOLEAN,
+ G_TYPE_OBJECT,
G_TYPE_INT,
G_TYPE_POINTER);
@@ -889,7 +891,10 @@
{
if (filetype->load)
{
- pixbuf = rs_load_thumb(filetype, fullname);
+ RSMetadata *metadata = rs_metadata_new_from_file(fullname);
+
+ pixbuf = rs_metadata_get_thumbnail(metadata);
+
if (pixbuf==NULL)
{
pixbuf = gdk_pixbuf_copy(missing_thumb);
@@ -918,9 +923,11 @@
FULLNAME_COLUMN, fullname,
PRIORITY_COLUMN, priority,
EXPORTED_COLUMN, exported,
+ METADATA_COLUMN, metadata,
-1);
- /* We can safely unref pixbuf by now, store holds a reference */
+ /* We can safely unref by now, store holds a reference */
+ g_object_unref (metadata);
g_object_unref (pixbuf);
g_object_unref (pixbuf_clean);
More information about the Rawstudio-commit
mailing list