[libchamplain] Update docs with the newly added functions



commit 5c13f2b40e879b5e09b7d75ab79626d2670552a3
Author: Jiří Techet <techet gmail com>
Date:   Sat May 20 23:32:27 2017 +0200

    Update docs with the newly added functions
    
    Plus some minor formatting nitpicks and vapi update.

 champlain/champlain-0.12.vapi                  |    5 ++++-
 champlain/champlain-network-bbox-tile-source.c |    1 +
 champlain/champlain-network-tile-source.c      |    3 ++-
 champlain/champlain-network-tile-source.h      |    3 ++-
 docs/reference/libchamplain-sections.txt       |    2 ++
 5 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/champlain/champlain-0.12.vapi b/champlain/champlain-0.12.vapi
index cc10d26..73b3dc6 100644
--- a/champlain/champlain-0.12.vapi
+++ b/champlain/champlain-0.12.vapi
@@ -50,7 +50,6 @@ namespace Champlain {
        [Deprecated (since = "0.12.4")]
        public class CustomMarker : Champlain.Marker, Atk.Implementor, Champlain.Location, 
Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
                [CCode (has_construct_function = false, type = "ClutterActor*")]
-               [Deprecated (since = "0.12.4")]
                public CustomMarker ();
        }
        [CCode (cheader_filename = "champlain/champlain.h", type_id = "champlain_error_tile_renderer_get_type 
()")]
@@ -317,11 +316,13 @@ namespace Champlain {
                public unowned string get_api_uri ();
                public void load_map_data (Champlain.BoundingBox bbox);
                public void set_api_uri (string api_uri);
+               public void set_user_agent (string user_agent);
                public string api_uri { get; set; }
                [NoAccessorMethod]
                public string proxy_uri { owned get; set; }
                [NoAccessorMethod]
                public Champlain.State state { get; set; }
+               public string user_agent { set; }
        }
        [CCode (cheader_filename = "champlain/champlain.h", type_id = "champlain_network_tile_source_get_type 
()")]
        public class NetworkTileSource : Champlain.TileSource {
@@ -337,10 +338,12 @@ namespace Champlain {
                public void set_offline (bool offline);
                public void set_proxy_uri (string proxy_uri);
                public void set_uri_format (string uri_format);
+               public void set_user_agent (string user_agent);
                public int max_conns { get; set; }
                public bool offline { get; set; }
                public string proxy_uri { get; set; }
                public string uri_format { get; set construct; }
+               public string user_agent { set; }
        }
        [CCode (cheader_filename = "champlain/champlain.h", type_id = "champlain_null_tile_source_get_type 
()")]
        public class NullTileSource : Champlain.TileSource {
diff --git a/champlain/champlain-network-bbox-tile-source.c b/champlain/champlain-network-bbox-tile-source.c
index 8257457..c8b7f0b 100644
--- a/champlain/champlain-network-bbox-tile-source.c
+++ b/champlain/champlain-network-bbox-tile-source.c
@@ -502,6 +502,7 @@ champlain_network_bbox_tile_source_set_api_uri (
   g_object_notify (G_OBJECT (self), "api-uri");
 }
 
+
 /**
  * champlain_network_bbox_tile_source_set_user_agent:
  * @map_data_source: a #ChamplainNetworkBboxTileSource
diff --git a/champlain/champlain-network-tile-source.c b/champlain/champlain-network-tile-source.c
index 341ad3c..1376225 100644
--- a/champlain/champlain-network-tile-source.c
+++ b/champlain/champlain-network-tile-source.c
@@ -593,7 +593,7 @@ champlain_network_tile_source_set_max_conns (ChamplainNetworkTileSource *tile_so
 
 /**
  * champlain_network_tile_source_set_user_agent:
- * @map_data_source: a #ChamplainNetworkTileSource
+ * @tile_source: a #ChamplainNetworkTileSource
  * @user_agent: A User-Agent string
  *
  * Sets the User-Agent header used communicating with the server.
@@ -614,6 +614,7 @@ champlain_network_tile_source_set_user_agent (
         user_agent, NULL);
 }
 
+
 #define SIZE 8
 static gchar *
 get_tile_uri (ChamplainNetworkTileSource *tile_source,
diff --git a/champlain/champlain-network-tile-source.h b/champlain/champlain-network-tile-source.h
index 8d8f1a9..30d563f 100644
--- a/champlain/champlain-network-tile-source.h
+++ b/champlain/champlain-network-tile-source.h
@@ -100,7 +100,8 @@ gint champlain_network_tile_source_get_max_conns (ChamplainNetworkTileSource *ti
 void champlain_network_tile_source_set_max_conns (ChamplainNetworkTileSource *tile_source,
     gint max_conns);
 
-void champlain_network_tile_source_set_user_agent (ChamplainNetworkTileSource *self, const gchar 
*user_agent);
+void champlain_network_tile_source_set_user_agent (ChamplainNetworkTileSource *tile_source,
+    const gchar *user_agent);
 
 G_END_DECLS
 
diff --git a/docs/reference/libchamplain-sections.txt b/docs/reference/libchamplain-sections.txt
index 16c2de9..45409c4 100644
--- a/docs/reference/libchamplain-sections.txt
+++ b/docs/reference/libchamplain-sections.txt
@@ -200,6 +200,7 @@ champlain_network_tile_source_set_proxy_uri
 champlain_network_tile_source_get_proxy_uri
 champlain_network_tile_source_set_max_conns
 champlain_network_tile_source_get_max_conns
+champlain_network_tile_source_set_user_agent
 <SUBSECTION Standard>
 CHAMPLAIN_NETWORK_TILE_SOURCE
 CHAMPLAIN_IS_NETWORK_TILE_SOURCE
@@ -240,6 +241,7 @@ champlain_network_bbox_tile_source_new_full
 champlain_network_bbox_tile_source_load_map_data
 champlain_network_bbox_tile_source_get_api_uri
 champlain_network_bbox_tile_source_set_api_uri
+champlain_network_bbox_tile_source_set_user_agent
 <SUBSECTION Standard>
 CHAMPLAIN_NETWORK_BBOX_TILE_SOURCE
 CHAMPLAIN_IS_NETWORK_BBOX_TILE_SOURCE


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]