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>
This commit is contained in:
Paul Mackerras 2006-03-18 16:02:51 +11:00
parent f7a3e8d254
commit f4171a19f0

5
gitk
View File

@ -1620,6 +1620,7 @@ proc xcoord {i level ln} {
proc finishcommits {} { proc finishcommits {} {
global commitidx phase global commitidx phase
global canv mainfont ctext maincursor textcursor global canv mainfont ctext maincursor textcursor
global findinprogress
if {$commitidx > 0} { if {$commitidx > 0} {
drawrest drawrest
@ -1628,8 +1629,10 @@ proc finishcommits {} {
$canv create text 3 3 -anchor nw -text "No commits selected" \ $canv create text 3 3 -anchor nw -text "No commits selected" \
-font $mainfont -tags textitems -font $mainfont -tags textitems
} }
if {![info exists findinprogress]} {
. config -cursor $maincursor . config -cursor $maincursor
settextcursor $textcursor settextcursor $textcursor
}
set phase {} set phase {}
} }
@ -1657,7 +1660,7 @@ proc drawrest {} {
showstuff $commitidx showstuff $commitidx
set drawmsecs [expr {[clock clicks -milliseconds] - $startmsecs}] set drawmsecs [expr {[clock clicks -milliseconds] - $startmsecs}]
#puts "overall $drawmsecs ms for $numcommits commits" puts "overall $drawmsecs ms for $numcommits commits"
} }
proc findmatches {f} { proc findmatches {f} {