From: Pierre-Luc Beaudoin Date: Thu, 30 Apr 2009 03:09:45 +0000 (-0400) Subject: Fix bug 580785: decel-rate of a view is not set correctly X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0143567000f8463f9411496c28df2988e8990e9;p=libchamplain Fix bug 580785: decel-rate of a view is not set correctly by inversing the conditions and making the param spec consistent. --- diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index 9dc7f0e..ea45fc5 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -662,7 +662,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.", - 1.0, 2.0, 1.1, CHAMPLAIN_PARAM_READWRITE)); + 0.0, 2.0, 1.1, CHAMPLAIN_PARAM_READWRITE)); /** * ChamplainView:keep-center-on-resize: @@ -1571,8 +1571,8 @@ champlain_view_set_decel_rate (ChamplainView *view, gdouble rate) { g_return_if_fail (CHAMPLAIN_IS_VIEW (view) && - rate > 2.0 && - rate < 0); + rate < 2.0 && + rate > 0.0); ChamplainViewPrivate *priv = view->priv;