]> err.no Git - libchamplain/commitdiff
Bug fix: reading the property "decel-rate" causes a GLib-GObject-WARNING
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Thu, 7 May 2009 21:03:04 +0000 (23:03 +0200)
committerEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Thu, 7 May 2009 21:03:04 +0000 (23:03 +0200)
The call to g_object_get() wasn't using reference to a double and the program
would issue the warning:
GLib-GObject-WARNING **: IA__g_object_get_valist: value location for `gdouble' passed as NULL

champlain/champlain-view.c

index fcc93ced75baecbeb03d415adee21db46926d2d9..e3616bdf6963d8c210b31ad4b31d16a6d5995318 100644 (file)
@@ -440,7 +440,7 @@ champlain_view_get_property (GObject *object,
       case PROP_DECEL_RATE:
         {
           gdouble decel = 0.0;
-          g_object_get (priv->finger_scroll, "decel-rate", decel, NULL);
+          g_object_get (priv->finger_scroll, "decel-rate", &decel, NULL);
           g_value_set_double (value, decel);
           break;
         }