From: Mark Levedahl Date: Sat, 6 Jul 2024 17:12:01 +0000 (-0400) Subject: gitk: separate x11 / win32 / aqua Mouse bindings X-Git-Tag: v2.51.0-rc0~47^2~1^2~6 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=3489ff17e2861d83407e215224f8654cd8671135;p=thirdparty%2Fgit.git gitk: separate x11 / win32 / aqua Mouse bindings Tk through 8.6 has different approaches for handling mouse wheel / touchpad scrolling events on the different platforms, and gitk has separate code for these. But, some x11 bindings are applied on aqua as we do not have these in a clean if / then / else tree based upon platform. Let's split these bindings apart. Signed-off-by: Mark Levedahl --- diff --git a/gitk b/gitk index a80aea9a48..8b3476c516 100755 --- a/gitk +++ b/gitk @@ -2698,7 +2698,7 @@ proc makewindow {} { if {[tk windowingsystem] == "win32"} { bind . { windows_mousewheel_redirector %W %X %Y %D } bind $ctext { windows_mousewheel_redirector %W %X %Y %D ; break } - } else { + } elseif {[tk windowingsystem] == "x11"} { bindall "allcanvs yview scroll -5 units" bindall "allcanvs yview scroll 5 units" bind $ctext