From 83cae132400df21d076e4406a534d300636d003b Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Mon, 14 Sep 2009 12:06:48 -0400 Subject: [PATCH] Set default selection mode to SINGLE to match Gtk+ --- NEWS | 2 ++ champlain/champlain-selection-layer.c | 9 +++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index a61f94a..3a6903d 100644 --- 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) =============================== diff --git a/champlain/champlain-selection-layer.c b/champlain/champlain-selection-layer.c index 2f6ecef..7ffc217 100644 --- a/champlain/champlain-selection-layer.c +++ b/champlain/champlain-selection-layer.c @@ -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; } -- 2.39.5