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 507398 - gtksettings app overrides
gtksettings app overrides
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
2.12.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 707206
 
 
Reported: 2008-01-05 00:34 UTC by Christian Persch
Modified: 2014-10-20 02:52 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Christian Persch 2008-01-05 00:34:13 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).
Comment 1 Matthias Clasen 2008-01-05 01:24:30 UTC
Just use g_object_set to set the settings. That has the desired effect.
Comment 2 Christian Persch 2008-05-29 18:35:06 UTC
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.
Comment 3 Matthias Clasen 2014-10-20 02:52:39 UTC
clarified the docs, and deprecated the unnecessary setters.
Implementing a reset is not easy, so I skipped that.