[libchamplain] Fix coding style
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [libchamplain] Fix coding style
- Date: Tue, 9 Jun 2009 10:08:56 -0400 (EDT)
commit 9b591c8a22f8c609f6e78577a46952fa467c84e5
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Tue Jun 9 09:41:10 2009 -0400
Fix coding style
---
champlain/champlain-network-map-source.c | 45 +++++++++++++++--------------
1 files changed, 23 insertions(+), 22 deletions(-)
diff --git a/champlain/champlain-network-map-source.c b/champlain/champlain-network-map-source.c
index d4d7aa2..277ff07 100644
--- a/champlain/champlain-network-map-source.c
+++ b/champlain/champlain-network-map-source.c
@@ -427,28 +427,29 @@ file_loaded_cb (SoupSession *session,
DEBUG ("Got reply %d", msg->status_code);
if (msg->status_code == 304)
- {
- /* Since we are updating the cache, we can assume that the directories
- * exists */
- GTimeVal *now = g_new0 (GTimeVal, 1);
-
- file = g_file_new_for_path (filename);
- info = g_file_query_info (file, G_FILE_ATTRIBUTE_TIME_MODIFIED,
- G_FILE_QUERY_INFO_NONE, NULL, NULL);
-
- g_get_current_time (now);
- g_file_info_set_modification_time (info, now);
- g_file_set_attributes_from_info (file, info, G_FILE_QUERY_INFO_NONE, NULL,
- NULL);
-
- g_object_unref (file);
- g_object_unref (info);
- g_free (now);
-
- champlain_tile_set_state (tile, CHAMPLAIN_STATE_DONE);
- g_object_unref (tile);
- return;
- }
+ {
+ /* Since we are updating the cache, we can assume that the directories
+ * exists */
+ GTimeVal *now = g_new0 (GTimeVal, 1);
+
+ file = g_file_new_for_path (filename);
+ info = g_file_query_info (file, G_FILE_ATTRIBUTE_TIME_MODIFIED,
+ G_FILE_QUERY_INFO_NONE, NULL, NULL);
+
+ g_get_current_time (now);
+ g_file_info_set_modification_time (info, now);
+ g_file_set_attributes_from_info (file, info, G_FILE_QUERY_INFO_NONE, NULL,
+ NULL);
+
+ g_object_unref (file);
+ g_object_unref (info);
+ g_free (now);
+
+ champlain_tile_set_state (tile, CHAMPLAIN_STATE_DONE);
+ g_object_unref (tile);
+ return;
+ }
+
if (!SOUP_STATUS_IS_SUCCESSFUL (msg->status_code))
{
DEBUG ("Unable to download tile %d, %d: %s",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]