@matheusbsbs / matheus-bagliano / commits / f4171a19f0
Fork 0

gitk: Don't change cursor at end of layout if find in progress

If the user is doing a find in files or patches, which changed the cursor to a watch, don't change it back to a pointer when we reach the end of laying out the graph. Signed-off-by: Paul Mackerras <paulus@samba.org>

Paul Mackerras committed Mar 18, 2006 at 16:02 UTC f4171a19f0a4091093bca4c1671c77b8caa93533
1 file changed +6 -3
gitk
+6 -3
@@ -1620,6 +1620,7 @@ proc xcoord {i level ln} {
1620 proc finishcommits {} {
1621 global commitidx phase
1622 global canv mainfont ctext maincursor textcursor
1623 + global findinprogress
1624
1625 if {$commitidx > 0} {
1626 drawrest
@@ -1628,8 +1629,10 @@ proc finishcommits {} {
1629 $canv create text 3 3 -anchor nw -text "No commits selected" \
1630 -font $mainfont -tags textitems
1631 }
1631 - . config -cursor $maincursor
1632 - settextcursor $textcursor
1632 + if {![info exists findinprogress]} {
1633 + . config -cursor $maincursor
1634 + settextcursor $textcursor
1635 + }
1636 set phase {}
1637 }
1638
@@ -1657,7 +1660,7 @@ proc drawrest {} {
1660 showstuff $commitidx
1661
1662 set drawmsecs [expr {[clock clicks -milliseconds] - $startmsecs}]
1660 - #puts "overall $drawmsecs ms for $numcommits commits"
1663 + puts "overall $drawmsecs ms for $numcommits commits"
1664 }
1665
1666 proc findmatches {f} {