]> err.no Git - libchamplain/commitdiff
595552: ChamplainView "decel-rate" accepts values below 1.0
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 26 Oct 2009 19:47:57 +0000 (15:47 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 26 Oct 2009 19:47:57 +0000 (15:47 -0400)
champlain/champlain-view.c

index 8ba5ee94b867a783e50f81f29d697fc3df3338c6..e91be8654b3084b624638b300b565a383b7eaf9a 100644 (file)
@@ -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;