Re: Bug in g_param_spec_double?!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le mer, 09/06/2004 Ã 17:48 +0200, Peter T. Mayer a Ãcrit :
> I have written an custom CellRenderer for GtkTreeView.
> 
> The property value of this can be: 0.0 <= value <= 1.0
> The limits of this value are set with g_param_spec_double () as you can 
> see below
> g_object_class_install_property (object_class, PROP_VALUE,
>                                  g_param_spec_double ("value",
>                                                     _("Value"),
>                                                     _("The progress to 
> show"),
>                                                       0, 1.0, 0,
>                                                       G_PARAM_READWRITE));
> 
> The problem is, if I set the value to exactly 1.0, I get an error message:
> 
> GLib-GObject-WARNING **: value "1,000000" of type `gfloat' is invalid or 
> out of range for property `value' of type `gdouble
> 
> this seems to me as if a check (value < 1.0) is done, but not a check 
> (value <= 1.0)
> Seems like a bug.

Bugs go in bugzilla: http://bugzilla.gnome.org/

-- m



-- 
Mariano SuÃrez-Alvarez <msuarezalvarez@xxxxxxxxxxxx>

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux