[libchamplainmm] Added a new method to Champlain::View
- From: Debarshi Ray <debarshir src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplainmm] Added a new method to Champlain::View
- Date: Sun, 25 Oct 2009 19:55:35 +0000 (UTC)
commit 0ce2da0c9fa1a24ff99c0bab8f7b069d8f0cdf2c
Author: Debarshi Ray <debarshir src gnome org>
Date: Sun Oct 25 21:53:53 2009 +0200
Added a new method to Champlain::View
The following new method was added:
+ void View::remove_layer(const Glib::RefPtr<Layer> & layer)
libchamplain/src/libchamplain_methods.defs | 9 +++++++++
libchamplain/src/view.hg | 2 ++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/libchamplain/src/libchamplain_methods.defs b/libchamplain/src/libchamplain_methods.defs
index 4177ba0..2c1fe8c 100644
--- a/libchamplain/src/libchamplain_methods.defs
+++ b/libchamplain/src/libchamplain_methods.defs
@@ -1530,6 +1530,15 @@
)
)
+(define-method remove_layer
+ (of-object "ChamplainView")
+ (c-name "champlain_view_remove_layer")
+ (return-type "none")
+ (parameters
+ '("ChamplainLayer*" "layer")
+ )
+)
+
(define-method get_coords_from_event
(of-object "ChamplainView")
(c-name "champlain_view_get_coords_from_event")
diff --git a/libchamplain/src/view.hg b/libchamplain/src/view.hg
index cbb9316..db70f01 100644
--- a/libchamplain/src/view.hg
+++ b/libchamplain/src/view.hg
@@ -116,6 +116,8 @@ public:
champlain_view_add_layer)
_WRAP_METHOD(void add_polygon(const Glib::RefPtr<Polygon> & polygon),
champlain_view_add_polygon)
+ _WRAP_METHOD(void remove_layer(const Glib::RefPtr<Layer> & layer),
+ champlain_view_remove_layer)
_WRAP_METHOD(void remove_polygon(const Glib::RefPtr<Polygon> & polygon),
champlain_view_remove_polygon)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]