After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 771534 - Cannot bind settings with float properties
Cannot bind settings with float properties
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gsettings
2.49.x
Other Linux
: Normal normal
: ---
Assigned To: Allison Karlitskaya (desrt)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2016-09-16 13:54 UTC by Gautier Pelloux-Prayer
Modified: 2018-05-24 19:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (903 bytes, patch)
2016-09-16 13:54 UTC, Gautier Pelloux-Prayer
needs-work Details | Review

Description Gautier Pelloux-Prayer 2016-09-16 13:54:30 UTC
Created attachment 335702 [details] [review]
patch

Trying to bind a settings of type double with a property in Vala of type gfloat fails with the following critical message:

"CRITICAL **: g_settings_bind: property 'xxx' on class 'yyy' has type 'gfloat' which is not compatible with type 'd'"

I believe that the float type is simply missing from g_settings_mapping_is_compatible (see patch).
Comment 1 Allison Karlitskaya (desrt) 2016-09-16 14:13:06 UTC
Review of attachment 335702 [details] [review]:

Are you sure this works?

This should allow the binding to be created, but I don't think that it will actually allow values to be successfully transferred back and forth.  Can you please expand the test case as a way to demonstrate this?
Comment 2 Gautier Pelloux-Prayer 2016-09-19 10:57:58 UTC
I am not much confident with glib in general, I cannot provide you with a proper test case. My patch must only fix partially this issue indeed, my bad.
Comment 3 GNOME Infrastructure Team 2018-05-24 19:06:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1204.