From: Pierre-Luc Beaudoin Date: Mon, 26 Oct 2009 19:47:57 +0000 (-0400) Subject: 595552: ChamplainView "decel-rate" accepts values below 1.0 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=885c4dd0e48cb16d2cf5d4f8a36a36f450cfcdf3;p=libchamplain 595552: ChamplainView "decel-rate" accepts values below 1.0 --- diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index 8ba5ee9..e91be86 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -859,7 +859,7 @@ champlain_view_class_init (ChamplainViewClass *champlainViewClass) g_param_spec_double ("decel-rate", "Deceleration rate", "Rate at which the view will decelerate in kinetic mode.", - 0.0, 2.0, 1.1, CHAMPLAIN_PARAM_READWRITE)); + 1.0001, 2.0, 1.1, CHAMPLAIN_PARAM_READWRITE)); /** * ChamplainView:keep-center-on-resize: @@ -2114,7 +2114,7 @@ champlain_view_set_map_source (ChamplainView *view, /** * champlain_view_set_decel_rate: * @view: a #ChamplainView -* @rate: a #gdouble between 0.0 and 2.0 +* @rate: a #gdouble between 1.001 and 2.0 * * The deceleration rate for the kinetic mode. * @@ -2126,7 +2126,7 @@ champlain_view_set_decel_rate (ChamplainView *view, { g_return_if_fail (CHAMPLAIN_IS_VIEW (view) && rate < 2.0 && - rate > 0.0); + rate > 1.0001); ChamplainViewPrivate *priv = view->priv;