GNOME Bugzilla – Bug 771534
Cannot bind settings with float properties
Last modified: 2018-05-24 19:06:18 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).
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?
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.
-- 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.