[maemo-commits] [maemo-commits] r16437 - projects/haf/trunk/hildon-thumbnail/daemon
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Fri Oct 17 17:57:42 EEST 2008
- Previous message: [maemo-commits] r16436 - projects/haf/trunk/hildon-thumbnail
- Next message: [maemo-commits] r16438 - in projects/haf/trunk/hildon-thumbnail: . daemon daemon/plugins
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: pvanhoof Date: 2008-10-17 17:57:42 +0300 (Fri, 17 Oct 2008) New Revision: 16437 Modified: projects/haf/trunk/hildon-thumbnail/daemon/thumbnail-manager.c Log: 2008-10-17 Philip Van Hoof <philip at codeminded.be> * thumbs/hildon-thumbnail-factory.c * thumbs/hildon-thumbnail-obj.c * thumbs/hildon-thumbnail-factory.h * daemon/hildon-thumbnail-plugin.h * daemon/plugins/gdkpixbuf-plugin.c * daemon/plugins/exec-plugin.c * daemon/plugins/gstreamer-video-plugin.c * daemon/thumbnail-manager.h * daemon/plugin-runner.c * daemon/thumbnailer.c * daemon/thumbnailer.h * daemon/manager.xml * daemon/thumbnailer.xml * daemon/thumbnail-manager.c: VFS and MimeType hinting Modified: projects/haf/trunk/hildon-thumbnail/daemon/thumbnail-manager.c =================================================================== --- projects/haf/trunk/hildon-thumbnail/daemon/thumbnail-manager.c 2008-10-17 14:40:06 UTC (rev 16436) +++ projects/haf/trunk/hildon-thumbnail/daemon/thumbnail-manager.c 2008-10-17 14:57:42 UTC (rev 16437) @@ -296,36 +296,18 @@ guint i; for (i = 0; i< length; i++) { - GStrv VFS_ids; - guint o = 0; - VFS_ids = g_key_file_get_string_list (keyfile, mimes[i], "SupportedVFS", NULL, NULL); - - if (VFS_ids) { - while (VFS_ids[o] != NULL) { - ValueInfo *info = g_slice_new (ValueInfo); - info->name = g_key_file_get_string (keyfile, mimes[i], "Name", NULL); - /* This is atm unused for items in overrides. */ - info->mtime = time (NULL); - /* Items in overrides are prioritized. */ - info->prio = TRUE; - g_hash_table_replace (pre, - g_strdup_printf ("%s-%s", mimes[i], VFS_ids[o]), - info); - o++; - } - } else { - ValueInfo *info = g_slice_new (ValueInfo); - info->name = g_key_file_get_string (keyfile, mimes[i], "Name", NULL); - /* This is atm unused for items in overrides. */ - info->mtime = time (NULL); - /* Items in overrides are prioritized. */ - info->prio = TRUE; - g_hash_table_replace (pre, - g_strdup (mimes[i]), - info); - } + ValueInfo *info = g_slice_new (ValueInfo); + info->name = g_key_file_get_string (keyfile, mimes[i], "Name", NULL); + /* This is atm unused for items in overrides. */ + info->mtime = time (NULL); + /* Items in overrides are prioritized. */ + info->prio = TRUE; + g_hash_table_replace (pre, + g_strdup (mimes[i]), + info); } + g_strfreev (mimes); }
- Previous message: [maemo-commits] r16436 - projects/haf/trunk/hildon-thumbnail
- Next message: [maemo-commits] r16438 - in projects/haf/trunk/hildon-thumbnail: . daemon daemon/plugins
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]