]> git.ipfire.org Git - thirdparty/git.git/commit
gitk: add horizontal scrollbar to the commit list pane
authorRob McDonald <rob.a.mcdonald@gmail.com>
Tue, 14 Apr 2026 16:34:03 +0000 (09:34 -0700)
committerRob McDonald <rob.a.mcdonald@gmail.com>
Sat, 18 Apr 2026 15:41:54 +0000 (08:41 -0700)
commitd9ee2ab501089e0ee22305ae99e13c7b730bc798
tree3b3c5fd250c265f9580ef758ed3128d6f35cc3b6
parentc8c5df79df34b40119c4bf8e3079520762f258d1
gitk: add horizontal scrollbar to the commit list pane

When many branches and tags decorate the same commit, the ref labels
push the commit description far to the right, often out of the visible
area of the left pane.  The canvas widget already tracked the maximum
x extent via canvxmax and updated its scrollregion accordingly, but
there was no scrollbar wired up to let the user reach that content.

Add a horizontal scrollbar (.tf.histframe.cxsb) below the three-pane
history area, connected to the left canvas (canv) via its xscrollcommand
and xview.

No behaviour is changed for the author (canv2) or date (canv3) panes;
they continue to scroll only vertically in lock-step as before.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Rob McDonald <rob.a.mcdonald@gmail.com>
gitk