Binding g_settings to properties of implemented classes/types

Hi,

I am trying to bind the “scheme” property of
GtkSourceStyleSchemeChooser to a g_settings value. However, in my
application I have a GtkSourceStyleSchemeChooserButton widget, which
implements GtkSourceStyleSchemeChooser.

How can I get g_settings to lookup a property of an implemented class/type?

Thank you.

Should work fine without any fancy code needed: just bind the property as if GtkSourceStyleSchemeChooserButton implemented it directly.

Note that, at least in gtksourceview 4, the property is called style-scheme, not scheme.

Ahh, how stupid of me. I did not double check the name of the property!! Thank you and sorry for the noise.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.