From: Emmanuel Rodriguez Date: Sat, 11 Jul 2009 08:42:45 +0000 (+0200) Subject: Bindings for champlain_selection_layer_select_all() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12d353ed2b5f8a963fab976fc0dc6362c3919076;p=libchamplain Bindings for champlain_selection_layer_select_all() --- 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