[Rawstudio-commit] r2011 - trunk/src

Anders Brander anders at brander.dk
Wed Sep 17 10:30:42 CEST 2008


Author: abrander
Date: 2008-09-17 10:30:41 +0200 (Wed, 17 Sep 2008)
New Revision: 2011

Modified:
   trunk/src/rs-metadata.c
   trunk/src/rs-metadata.h
Log:
Added rs_metadata_get_thumbnail().

Modified: trunk/src/rs-metadata.c
===================================================================
--- trunk/src/rs-metadata.c	2008-09-17 08:17:56 UTC (rev 2010)
+++ trunk/src/rs-metadata.c	2008-09-17 08:30:41 UTC (rev 2011)
@@ -177,3 +177,14 @@
 
 	return ret;
 }
+
+GdkPixbuf *
+rs_metadata_get_thumbnail(RSMetadata *metadata)
+{
+	g_assert(RS_IS_METADATA(metadata));
+
+	if (metadata->thumbnail)
+		g_object_ref(metadata->thumbnail);
+
+	return metadata->thumbnail;
+}

Modified: trunk/src/rs-metadata.h
===================================================================
--- trunk/src/rs-metadata.h	2008-09-17 08:17:56 UTC (rev 2010)
+++ trunk/src/rs-metadata.h	2008-09-17 08:30:41 UTC (rev 2011)
@@ -44,6 +44,7 @@
 extern gboolean rs_metadata_load_from_file(RSMetadata *metadata, const gchar *filename);
 extern void rs_metadata_normalize_wb(RSMetadata *metadata);
 extern gchar *rs_metadata_get_short_description(RSMetadata *metadata);
+extern GdkPixbuf *rs_metadata_get_thumbnail(RSMetadata *metadata);
 
 G_END_DECLS
 




More information about the Rawstudio-commit mailing list