[tracker/tracker-0.8] tracker-extract: NB#166717 Combine multiple keywords together for IPTC



commit dbdf7684d386a5a3021416bc3da78904b534aff9
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue May 4 11:44:15 2010 +0200

    tracker-extract: NB#166717 Combine multiple keywords together for IPTC

 src/libtracker-extract/tracker-iptc.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-iptc.c b/src/libtracker-extract/tracker-iptc.c
index b8e3ca3..2d1695a 100644
--- a/src/libtracker-extract/tracker-iptc.c
+++ b/src/libtracker-extract/tracker-iptc.c
@@ -91,6 +91,11 @@ foreach_dataset (IptcDataSet *dataset,
 		if (!data->keywords) {
 			iptc_dataset_get_as_str (dataset, mbuffer, 1024);
 			data->keywords = g_strdup (mbuffer);
+		} else {
+			gchar *tmp = data->keywords;
+			iptc_dataset_get_as_str (dataset, mbuffer, 1024);
+			data->keywords = g_strdup_printf ("%s, %s", data->keywords, mbuffer);
+			g_free (tmp);
 		}
 		break;
 



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