From 9b591c8a22f8c609f6e78577a46952fa467c84e5 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Tue, 9 Jun 2009 09:41:10 -0400 Subject: [PATCH] Fix coding style --- champlain/champlain-network-map-source.c | 45 ++++++++++++------------ 1 file 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", -- 2.39.5