View previous topic :: View next topic |
Author |
Message |
defer- Tux's lil' helper
Joined: 11 Jun 2007 Posts: 140 Location: Finland
|
Posted: Wed Jun 25, 2014 10:57 am Post subject: Disable GTK+ scrollbar zoom mode |
|
|
GTK+ has this new feature called zoom mode. When you click-and-hold or long press on the slider it will put the scrollbar into zoom mode. Then the scrollbar moves very slowly. Only half the speed of the cursor. This feature really annoyed me and everybody told me it is impossible to disable it. So i figured out how to disable it on gentoo and thought i should share the solution.
Create patch to increase the GTK+ zoom mode delay:
/etc/portage/patches/x11-libs/gtk+-3.12.2/gtk+-3.12.2-zoom-mode-delay.patch
Code: | diff -upr gtk-upstream/gtk/gtkrange.c gtk+-3.12.2/gtk/gtkrange.c
--- gtk-upstream/gtk/gtkrange.c 2014-06-24 20:55:54.429790047 +0300
+++ gtk+-3.12.2/gtk/gtkrange.c 2014-06-24 20:56:40.589789587 +0300
@@ -64,7 +64,7 @@
#define UPDATE_DELAY 300 /* Delay for queued update */
#define TIMEOUT_INITIAL 500
#define TIMEOUT_REPEAT 50
-#define ZOOM_HOLD_TIME 500
+#define ZOOM_HOLD_TIME 10000
#define AUTOSCROLL_FACTOR 20
#define SCROLL_EDGE_SIZE 15 |
Set portage to call epatch_user() for all ebuilds:
/etc/portage/bashrc
Code: | post_src_unpack() {
if type epatch_user &> /dev/null ; then
if [[ -d ${S} ]]; then
pushd "${S}" 2>/dev/null
epatch_user
popd 2>/dev/null
else
epatch_user
fi
fi
} |
Rebuild GTK+:
# emerge -1 gtk+ _________________ https://github.com/defer- |
|
Back to top |
|
|
Allan Wegan n00b
Joined: 06 Apr 2012 Posts: 23
|
Posted: Mon Sep 15, 2014 5:26 am Post subject: |
|
|
Thanks for the fix.
That "zoom mode" was the second most annoying in-ya-face-cant-be-turned-off "feature" i stumbled on. |
|
Back to top |
|
|
defer- Tux's lil' helper
Joined: 11 Jun 2007 Posts: 140 Location: Finland
|
Posted: Sun Sep 28, 2014 4:38 pm Post subject: |
|
|
Yes it was annoying. I'm glad it helped. _________________ https://github.com/defer- |
|
Back to top |
|
|
haarp Guru
Joined: 31 Oct 2007 Posts: 535
|
|
Back to top |
|
|
|