tracker r2400 - in trunk: . src/tracker-indexer
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2400 - in trunk: . src/tracker-indexer
- Date: Tue, 21 Oct 2008 09:26:59 +0000 (UTC)
Author: pvanhoof
Date: Tue Oct 21 09:26:59 2008
New Revision: 2400
URL: http://svn.gnome.org/viewvc/tracker?rev=2400&view=rev
Log:
2008-10-21 Philip Van Hoof <philip codeminded be>
* src/tracker-indexer/tracker-metadata-utils.c: Adapted to new D-Bus API
for thumbnailing
Modified:
trunk/ChangeLog
trunk/src/tracker-indexer/tracker-metadata-utils.c
Modified: trunk/src/tracker-indexer/tracker-metadata-utils.c
==============================================================================
--- trunk/src/tracker-indexer/tracker-metadata-utils.c (original)
+++ trunk/src/tracker-indexer/tracker-metadata-utils.c Tue Oct 21 09:26:59 2008
@@ -653,6 +653,7 @@
{
#ifdef HAVE_HILDON_THUMBNAIL
static gchar *batch[51];
+ static gchar *hints[51];
static guint count = 0;
static gboolean not_available = FALSE;
@@ -666,7 +667,12 @@
utf_path = g_filename_to_utf8 (path, -1, NULL, NULL, NULL);
if (utf_path) {
- batch[count++] = utf_path;
+ batch[count] = utf_path;
+ if (mime)
+ hints[count] = g_strdup (mime);
+ else
+ hints[count] = g_strdup ("unknown/unknown");
+ count++;
}
}
@@ -674,6 +680,7 @@
guint i;
batch[51] = NULL;
+ hints[51] = NULL;
g_debug ("Requesting thumbnails");
@@ -682,11 +689,13 @@
get_file_thumbnail_queue_cb,
NULL, NULL,
G_TYPE_STRV, batch,
+ G_TYPE_STRV, hints,
G_TYPE_UINT, 0,
G_TYPE_INVALID);
for (i = 0; i <= count; i++) {
g_free (batch[i]);
+ g_free (hints[i]);
}
count = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]