From: Emmanuel Rodriguez Date: Thu, 7 May 2009 21:03:04 +0000 (+0200) Subject: Bug fix: reading the property "decel-rate" causes a GLib-GObject-WARNING X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dcfacb299bfbc9ce425d1dcd72e2d94265584c8;p=libchamplain Bug fix: reading the property "decel-rate" causes a GLib-GObject-WARNING 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 --- diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index fcc93ce..e3616bd 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -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; }