[libchamplain] Bindings for champlain_selection_layer_select_all()



commit 12d353ed2b5f8a963fab976fc0dc6362c3919076
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date:   Sat Jul 11 10:42:45 2009 +0200

    Bindings for champlain_selection_layer_select_all()

 .../perl/Champlain/t/ChamplainSelectionLayer.t     |   14 ++++++++++++--
 .../perl/Champlain/xs/ChamplainSelectionLayer.xs   |    4 ++--
 2 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/bindings/perl/Champlain/t/ChamplainSelectionLayer.t b/bindings/perl/Champlain/t/ChamplainSelectionLayer.t
index 7c8ec87..9470407 100644
--- a/bindings/perl/Champlain/t/ChamplainSelectionLayer.t
+++ b/bindings/perl/Champlain/t/ChamplainSelectionLayer.t
@@ -45,7 +45,7 @@ sub test_empty_multiple {
 	# Can't be tested but at least they are invoked
 	$layer->select($marker);
 	$layer->unselect($marker);
-#	$layer->select_all();
+	$layer->select_all();
 	$layer->unselect_all();
 
 	# Change the selection mode
@@ -93,7 +93,7 @@ sub test_empty_single {
 	# Can't be tested but at least they are invoked
 	$layer->select($marker);
 	$layer->unselect($marker);
-#	$layer->select_all();
+	$layer->select_all();
 	$layer->unselect_all();
 
 	# Change the selection mode
@@ -194,6 +194,16 @@ sub test_markers_multiple {
 		"[multiple] get_selected_markers()"
 	);
 
+
+	# Select all markers
+	$layer->select_all();
+	$count = $layer->count_selected_markers;
+	is($count, 4, "[multiple] select_all()");
+
+	$layer->select_all();
+	$count = $layer->count_selected_markers;
+	is($count, 4, "[multiple] select_all()");
+
 	return 0;
 }
 
diff --git a/bindings/perl/Champlain/xs/ChamplainSelectionLayer.xs b/bindings/perl/Champlain/xs/ChamplainSelectionLayer.xs
index 8e0f8fb..6cf040b 100644
--- a/bindings/perl/Champlain/xs/ChamplainSelectionLayer.xs
+++ b/bindings/perl/Champlain/xs/ChamplainSelectionLayer.xs
@@ -48,8 +48,8 @@ gboolean
 champlain_selection_layer_marker_is_selected (ChamplainSelectionLayer *layer, ChamplainBaseMarker *marker)
 
 
-#void
-#champlain_selection_layer_select_all (ChamplainSelectionLayer *layer)
+void
+champlain_selection_layer_select_all (ChamplainSelectionLayer *layer)
 
 
 void



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