]> err.no Git - libchamplain/commitdiff
Set default selection mode to SINGLE to match Gtk+
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 14 Sep 2009 16:06:48 +0000 (12:06 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 14 Sep 2009 16:06:48 +0000 (12:06 -0400)
NEWS
champlain/champlain-selection-layer.c

diff --git a/NEWS b/NEWS
index a61f94a80aef98b5f5bae5101cbf6dae0d088340..3a6903d43dbf94c4e9a4aee534a581b0ab3ce48f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,8 @@ Fixes:
   (Pierre-Luc Beaudoin)
 * Fix polygon not visible at higher zoom levels (Pierre-Luc Beaudoin)
 * 594963: Initial scrolling results in map being in Antarctica (Pierre-Luc Beaudoin)
+* Make default selection mode in ChamplainSelectionMode single to match Gtk+
+  (Pierre-Luc Beaudoin)
 
 libchamplain 0.3.92 (2009-09-03)
 ===============================
index 2f6ecef58227e7b44471ccef736352621f8ebe04..7ffc217d8ff134dd356e4aadceebbbb1636aba82 100644 (file)
@@ -22,9 +22,6 @@
  *
  * A ChamplainSelectionLayer is little more than a #ChamplainLayer. The markers
  * can be selected.
- *
- * Use #clutter_container_add to add markers to the layer and
- * #clutter_container_remove to remove them.
  */
 
 #include "config.h"
@@ -117,7 +114,7 @@ champlain_selection_layer_class_init (ChamplainSelectionLayerClass *klass)
            "Selection Mode",
            "Determines the type of selection that will be performed.",
            CHAMPLAIN_TYPE_SELECTION_MODE,
-           CHAMPLAIN_SELECTION_MULTIPLE,
+           CHAMPLAIN_SELECTION_SINGLE,
            CHAMPLAIN_PARAM_READWRITE));
 }
 
@@ -217,7 +214,7 @@ static void
 champlain_selection_layer_init (ChamplainSelectionLayer *self)
 {
   self->priv = GET_PRIVATE (self);
-  self->priv->mode = CHAMPLAIN_SELECTION_MULTIPLE;
+  self->priv->mode = CHAMPLAIN_SELECTION_SINGLE;
   self->priv->selection = NULL;
 
   g_signal_connect_after (G_OBJECT (self), "actor-added",
@@ -406,6 +403,6 @@ champlain_selection_layer_get_selection_mode (ChamplainSelectionLayer *layer)
 {
   g_return_val_if_fail (
       CHAMPLAIN_IS_SELECTION_LAYER (layer),
-      CHAMPLAIN_SELECTION_MULTIPLE);
+      CHAMPLAIN_SELECTION_SINGLE);
   return layer->priv->mode;
 }