GNOME Bugzilla – Bug 688524
Expose gtk-primary-button-warps-slider as an X setting
Last modified: 2017-05-05 13:31:15 UTC
Created attachment 229222 [details] [review] gtk+: Expose gtk-primary-button-warps-slider as an X setting The style property gtk-primary-button-warps-slider controls how GtkRange behaves when the mouse is clicked in the trough. Expose this as an X setting which can be configured as org.gnome.desktop.interface.warp-slider.
Created attachment 229223 [details] [review] gsettings-desktop-schemas: Add a key for gtk-primary-button-warps-slider
Created attachment 229224 [details] [review] gnome-settings-daemon: Add warp-slider X setting
Why should we do that ? The setting is meant to adapt GTK+ to the platform it run on, not to expose an extra knob inside a single platform.
Why? So that users can configure the paging behaviour of scrollbars in the same way that other aspects of the UI are configurable.
Unless I'm missing something, I believe this can be overridden by just adding the following in ~/.config/gtk-3.0/settings.ini gtk-primary-button-warps-slider = 1 I don't see the point to expose this through another two layers of settings (GSettings and XSettings).
Editing settings.ini was the first thing I tried, but I couldn't get it to work. Evidently I didn't try hard enough because after giving it another go it does now work for me. Still, making it available via GSettings does provide alternative ways to configure it.
(In reply to comment #6) > Still, making it available via GSettings does provide alternative ways to > configure it. It does indeed, but the question is whether we want to provide all these alternative ways of configuring something which is really a platform choice rather than an user setting. I don't expect e.g. the control center to ever get any UI to configure this, and tools like gnome-tweak-tool can easily modify settings.ini. For instance gnome-tweak-tool already does a very similar thing for an "use dark theme everywhere" option. I think I would close this as WONTFIX, but Matthias might want to have a final call.
I'd like _only_ patch #1 to go in to allow for: - gtk+3 under GNOME 3 to behave as is - gtk+3 under KDE (with xsettings-kde) to behave more like KDE Modifying settings.ini will change the behaviour everywhere. This is pretty much why xsettings were invented, no? I'd prefer the xsetting name "Gtk/PrimaryButtonWarpsSlider"
Whenever I've interacted with KDE, they've been unwilling to export settings if they have Gtk/ in their name, so I don't think making this an XSetting is going to help you.
Created attachment 319703 [details] [review] Only add the XSetting As discussed on IRC. Note: I am a new xsettings-kde developer with Git+SVN access :-D
Review of attachment 319703 [details] [review]: ok
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.