[maemo-commits] [maemo-commits] r15991 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Sep 3 16:10:17 EEST 2008
- Previous message: [maemo-commits] r15990 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Next message: [maemo-commits] r15992 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: pvanhoof
Date: 2008-09-03 16:10:16 +0300 (Wed, 03 Sep 2008)
New Revision: 15991
Modified:
projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c
Log:
We always work with uris, not paths
Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c 2008-09-03 13:09:10 UTC (rev 15990)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c 2008-09-03 13:10:16 UTC (rev 15991)
@@ -70,14 +70,14 @@
static void
-get_some_file_infos (const gchar *path, gchar **mime_type, gboolean *has_thumb)
+get_some_file_infos (const gchar *uri, gchar **mime_type, gboolean *has_thumb)
{
const gchar *content_type, *tp;
GFileInfo *info;
GFile *file;
GError *error = NULL;
- file = g_file_new_for_path (path);
+ file = g_file_new_for_uri (uri);
info = g_file_query_info (file,
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE ","
G_FILE_ATTRIBUTE_THUMBNAIL_PATH,
@@ -85,7 +85,8 @@
NULL, &error);
if (error) {
- g_warning ("Error guessing mimetype for '%s': %s\n", path, error->message);
+ g_warning ("Error guessing mimetype for '%s': %s\n",
+ uri, error->message);
g_error_free (error);
*mime_type = g_strdup ("unknown/unknown");
*has_thumb = FALSE;
- Previous message: [maemo-commits] r15990 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Next message: [maemo-commits] r15992 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
