GNOME Bugzilla – Bug 507398
gtksettings app overrides
Last modified: 2014-10-20 02:52:39 UTC
GtkSettings internally has code to handler settings with source GTK_SETTINGS_SOURCE_APPLICATION. However the functions to set these, gtk_settings_set_property_value, gtk_settings_set_{string,long,double}_value are marked private in the header file (but not prefixed with _, so they are exported). It would be useful make these really public to be able to override settings in the app in such a way that one can fix the value without xsettings changes affecting it. I propose to make these functions really public (and to add API docs for them).
Just use g_object_set to set the settings. That has the desired effect.
Hmm right, I missed that. I think the docs should make that clearer; I could provide a patch. What's missing with this then is a way to re-set the property, so that it again tracks the RC / Xsetting value.
clarified the docs, and deprecated the unnecessary setters. Implementing a reset is not easy, so I skipped that.