[libchamplainmm] PathLayer: Add unset_dash() to remove dash pattern



commit ae57484478502987558efa7e20fce6e8b65268a9
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Sun Jul 27 17:49:16 2014 +0200

    PathLayer: Add unset_dash() to remove dash pattern

 champlain/src/path-layer.ccg |    6 ++++++
 champlain/src/path-layer.hg  |    4 ++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/champlain/src/path-layer.ccg b/champlain/src/path-layer.ccg
index 8e7e81e..b177145 100644
--- a/champlain/src/path-layer.ccg
+++ b/champlain/src/path-layer.ccg
@@ -41,4 +41,10 @@ struct TypeTraits<guint>
 
 namespace Champlain
 {
+
+void PathLayer::unset_dash()
+{
+  champlain_path_layer_set_dash(gobj(), NULL);
+}
+
 } // namespace Champlain
diff --git a/champlain/src/path-layer.hg b/champlain/src/path-layer.hg
index ccb653c..65f7f0c 100644
--- a/champlain/src/path-layer.hg
+++ b/champlain/src/path-layer.hg
@@ -76,6 +76,10 @@ public:
 #m4 _CONVERSION(`std::vector< guint >',`GList*',`Glib::ListHandler< guint >::vector_to_list($3).data()')
   _WRAP_METHOD(void set_dash(std::vector< guint > dash_pattern), champlain_path_layer_set_dash)
 
+  /** Use solid line.
+   */
+  void unset_dash();
+
   _WRAP_PROPERTY("closed", bool)
   _WRAP_PROPERTY("fill", bool)
   _WRAP_PROPERTY("fill-color", Clutter::Color)


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