[tracker] tracker-extract: NB#166717 Combine multiple keywords together for IPTC
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: NB#166717 Combine multiple keywords together for IPTC
- Date: Tue, 4 May 2010 09:46:21 +0000 (UTC)
commit b063305f85d08efdb74f6b1b53e2d83702f8d201
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 4df1bf2..8fb1866 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]