Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TIP: Restore old scrollbar behavior for GNOME/GTK+ 3.6 apps
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
ebichu
Apprentice
Apprentice


Joined: 03 Jul 2002
Posts: 231
Location: Manchester, England

PostPosted: Wed Jan 23, 2013 4:56 pm    Post subject: TIP: Restore old scrollbar behavior for GNOME/GTK+ 3.6 apps Reply with quote

After upgrading to >=x11-libs/gtk+-3.6 it really bugged me that the scroll-bars on applications behaved differently than they used to, and more importantly behaved differently than most of the other applications (apart from old X11 apps like such as xterm).

What used to happen (and still happens in most other applications) is that when clicking in the "trough" of the scrollbar (to one side or the other of the slider), the scrollbar position (and the window contents it was controlling) would move in the direction of the click by approximately one page. What happens by default with GTK+ 3.6 is that the slider jumps to the point where you clicked in the trough. This makes it really tricky to scroll up or down a page at a time; you have to move the mouse just above or just below the current slider position before clicking, rather than moving it anywhere in the trough above or below the current slider position.

The Solution

The old behavior can be restored by creating or editing the ~/.config/gtk-3.0/settings.ini file and setting the gtk-primary-button-warps-slider property to false as follows:

Code:
[Settings]
gtk-primary-button-warps-slider = false


To make this change for all users by default, edit /etc/gtk-3.0/settings.ini instead and add the line to the existing [Settings] section.

Acknowledgements

This was driving me crazy until I found the solution here.
_________________
Ebichu wa chiizu ga daisuki dechu!
Back to top
View user's profile Send private message
toon
n00b
n00b


Joined: 26 Jan 2003
Posts: 67
Location: The Netherlands

PostPosted: Wed Feb 06, 2013 10:27 pm    Post subject: Reply with quote

Great, thank you, you've made me a happy camper again.
What were those Gnome people thinking when they changed this?
That every Gnome user is working with a touch screen? Hah!
Back to top
View user's profile Send private message
waterloo2005
Apprentice
Apprentice


Joined: 26 Aug 2008
Posts: 271

PostPosted: Tue Mar 12, 2013 5:49 am    Post subject: Reply with quote

After I add this , I get below when I open gedit :
Code:
(gedit:6094): Gtk-WARNING **: Error setting gtk-primary-button-warps-slider in /etc/gtk-3.0/settings.ini: Key file contains key 'gtk-primary-button-warps-slider' which has a value that cannot be interpreted.


Strange , now it is OK.
_________________
i5-2450M, gnome, amd64
R,Mathematica,Emacs
Back to top
View user's profile Send private message
pavel.stratil
Tux's lil' helper
Tux's lil' helper


Joined: 23 Oct 2005
Posts: 134

PostPosted: Sun Dec 13, 2015 9:33 am    Post subject: Reply with quote

Well is it just me or this doesnt work in precompiled binaries such as firefox-bin?
_________________
Senbonzakura
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum