Skip to content

Commit 45d10e1

Browse files
committed
Merge branch 'master' of https://github.com/j6t/gitk
* 'master' of https://github.com/j6t/gitk: gitk: add horizontal scrollbar to the commit list pane
2 parents 3e65291 + bad83ad commit 45d10e1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

gitk-git/gitk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2469,7 +2469,8 @@ proc makewindow {} {
24692469
-selectbackground $selectbgcolor \
24702470
-background $bgcolor -bd 0 \
24712471
-xscrollincr $linespc \
2472-
-yscrollincr $linespc -yscrollcommand "scrollcanv $cscroll"
2472+
-yscrollincr $linespc -yscrollcommand "scrollcanv $cscroll" \
2473+
-xscrollcommand ".tf.histframe.cxsb set"
24732474
.tf.histframe.pwclist add $canv
24742475
set canv2 .tf.histframe.pwclist.canv2
24752476
canvas $canv2 \
@@ -2487,9 +2488,11 @@ proc makewindow {} {
24872488
.tf.histframe.pwclist sashpos 0 [lindex $::geometry(pwsash0) 0]
24882489
}
24892490
2490-
# a scroll bar to rule them
2491+
# a scroll bar to rule them (vertical), and one for horizontal scroll of left pane
24912492
ttk::scrollbar $cscroll -command {allcanvs yview}
24922493
pack $cscroll -side right -fill y
2494+
ttk::scrollbar .tf.histframe.cxsb -orient horizontal -command "$canv xview"
2495+
pack .tf.histframe.cxsb -side bottom -fill x
24932496
bind .tf.histframe.pwclist <Configure> {resizeclistpanes %W %w}
24942497
lappend bglist $canv $canv2 $canv3
24952498
pack .tf.histframe.pwclist -fill both -expand 1 -side left

0 commit comments

Comments
 (0)