[maemo-commits] [maemo-commits] r15989 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Sep 3 16:08:07 EEST 2008
- Previous message: [maemo-commits] r15988 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Next message: [maemo-commits] r15990 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: pvanhoof
Date: 2008-09-03 16:08:06 +0300 (Wed, 03 Sep 2008)
New Revision: 15989
Modified:
projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c
Log:
Codestyle
Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c 2008-09-03 13:06:07 UTC (rev 15988)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c 2008-09-03 13:08:06 UTC (rev 15989)
@@ -94,16 +94,9 @@
tp = g_file_info_get_attribute_byte_string (info,
G_FILE_ATTRIBUTE_THUMBNAIL_PATH);
- if (tp) {
- *has_thumb = g_file_test (tp, G_FILE_TEST_EXISTS);
- } else
- *has_thumb = FALSE;
+ *has_thumb = tp?g_file_test (tp, G_FILE_TEST_EXISTS):FALSE;
+ *mime_type = content_type?g_strdup (content_type):g_strdup ("unknown/unknown");
- if (!content_type)
- *mime_type = g_strdup ("unknown/unknown");
- else
- *mime_type = g_strdup (content_type);
-
g_object_unref (info);
g_object_unref (file);
}
- Previous message: [maemo-commits] r15988 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Next message: [maemo-commits] r15990 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
