[libchamplain] Add champlain_marker_layer_new() constructor



commit 83e29f0b4093b681f32f0b4b10b35565933093a9
Author: JiÅ?í Techet <techet gmail com>
Date:   Sat Feb 19 22:27:01 2011 +0100

    Add champlain_marker_layer_new() constructor

 champlain/champlain-marker-layer.c       |   16 ++++++++++++++++
 champlain/champlain-marker-layer.h       |    1 +
 docs/reference/libchamplain-sections.txt |    1 +
 3 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/champlain/champlain-marker-layer.c b/champlain/champlain-marker-layer.c
index 5578575..bf94af9 100644
--- a/champlain/champlain-marker-layer.c
+++ b/champlain/champlain-marker-layer.c
@@ -298,6 +298,22 @@ champlain_marker_layer_init (ChamplainMarkerLayer *self)
 
 
 /**
+ * champlain_marker_layer_new:
+ *
+ * Creates a new instance of #ChamplainMarkerLayer.
+ *
+ * Returns: a new #ChamplainMarkerLayer ready to be used as a container for the markers.
+ *
+ * Since: 0.10
+ */
+ChamplainMarkerLayer *
+champlain_marker_layer_new ()
+{
+  return g_object_new (CHAMPLAIN_TYPE_MARKER_LAYER, NULL);
+}
+
+
+/**
  * champlain_marker_layer_new_full:
  * @mode: Selection mode
  *
diff --git a/champlain/champlain-marker-layer.h b/champlain/champlain-marker-layer.h
index 3f44649..ac311b5 100644
--- a/champlain/champlain-marker-layer.h
+++ b/champlain/champlain-marker-layer.h
@@ -84,6 +84,7 @@ struct _ChamplainMarkerLayerClass
 
 GType champlain_marker_layer_get_type (void);
 
+ChamplainMarkerLayer *champlain_marker_layer_new (void);
 ChamplainMarkerLayer *champlain_marker_layer_new_full (ChamplainSelectionMode mode);
 
 void champlain_marker_layer_add_marker (ChamplainMarkerLayer *layer,
diff --git a/docs/reference/libchamplain-sections.txt b/docs/reference/libchamplain-sections.txt
index 9b71953..c22feda 100644
--- a/docs/reference/libchamplain-sections.txt
+++ b/docs/reference/libchamplain-sections.txt
@@ -309,6 +309,7 @@ ChamplainLayerClass
 <TITLE>ChamplainMarkerLayer</TITLE>
 ChamplainMarkerLayer
 ChamplainSelectionMode
+champlain_marker_layer_new
 champlain_marker_layer_new_full
 champlain_marker_layer_add_marker
 champlain_marker_layer_remove_marker



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