[libchamplain] Get rid of libsoup warnings
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Get rid of libsoup warnings
- Date: Mon, 8 Apr 2013 16:01:03 +0000 (UTC)
commit 4be00c93ca58b4d8dd65d29cc58f428f4258f64b
Author: Jiří Techet <techet gmail com>
Date: Mon Apr 8 00:20:28 2013 +0200
Get rid of libsoup warnings
champlain/champlain-network-tile-source.c | 2 +-
demos/url-marker.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/champlain/champlain-network-tile-source.c b/champlain/champlain-network-tile-source.c
index 7715327..86d2909 100644
--- a/champlain/champlain-network-tile-source.c
+++ b/champlain/champlain-network-tile-source.c
@@ -623,7 +623,7 @@ tile_loaded_cb (G_GNUC_UNUSED SoupSession *session,
}
/* Verify if the server sent an etag and save it */
- etag = soup_message_headers_get (msg->response_headers, "ETag");
+ etag = soup_message_headers_get_one (msg->response_headers, "ETag");
DEBUG ("Received ETag %s", etag);
renderer = champlain_map_source_get_renderer (map_source);
diff --git a/demos/url-marker.c b/demos/url-marker.c
index d0c2716..0ca2de7 100644
--- a/demos/url-marker.c
+++ b/demos/url-marker.c
@@ -50,7 +50,7 @@ pixbuf_new_from_message (SoupMessage *message,
/* Use a pixbuf loader that can load images of the same mime-type as the
message.
*/
- mime_type = soup_message_headers_get (message->response_headers,
+ mime_type = soup_message_headers_get_one (message->response_headers,
"Content-Type");
loader = gdk_pixbuf_loader_new_with_mime_type (mime_type, error);
if (loader != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]