summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9ccbdfb)
raw | patch | inline | side by side (parent: 9ccbdfb)
author | Paul Mackerras <paulus@samba.org> | |
Thu, 16 Jun 2005 10:54:04 +0000 (10:54 +0000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Thu, 16 Jun 2005 10:54:04 +0000 (10:54 +0000) |
Display a watch cursor when reading the commits initially
gitk | patch | blob | history |
index f33c3fa0cc369f9f8544b194564ab3305f4f0c1b..73c736d098ea2d046930a8afd754a404aee0fed0 100755 (executable)
--- a/gitk
+++ b/gitk
# and distributed under the terms of the GNU General Public Licence,
# either version 2, or (at your option) any later version.
-# CVS $Revision: 1.22 $
+# CVS $Revision: 1.23 $
proc getcommits {rargs} {
global commits commfd phase canv mainfont
global startmsecs nextupdate
+ global ctext maincursor textcursor
if {$rargs == {}} {
set rargs HEAD
$canv delete all
$canv create text 3 3 -anchor nw -text "Reading commits..." \
-font $mainfont -tags textitems
+ . config -cursor watch
+ $ctext config -cursor watch
}
proc getcommitline {commfd} {
global canv canv2 canv3 linespc charspc ctext cflist textfont
global findtype findloc findstring fstring geometry
global entries sha1entry sha1string sha1but
+ global maincursor textcursor
menu .bar
.bar add cascade -label "File" -menu .bar.file
bind . <Button-1> "click %W"
bind $fstring <Key-Return> dofind
bind $sha1entry <Key-Return> gotocommit
+
+ set maincursor [. cget -cursor]
+ set textcursor [$ctext cget -cursor]
}
# when we make a key binding for the toplevel, make sure
Use and redistribute under the terms of the GNU General Public License
-(CVS $Revision: 1.22 $)} \
+(CVS $Revision: 1.23 $)} \
-justify center -aspect 400
pack $w.m -side top -fill x -padx 20 -pady 20
button $w.ok -text Close -command "destroy $w"
proc finishcommits {} {
global phase
global startcommits
+ global ctext maincursor textcursor
if {$phase != "incrdraw"} {
$canv delete all
drawslants
set level [decidenext]
drawrest $level [llength $startcommits]
+ . config -cursor $maincursor
+ $ctext config -cursor $textcursor
}
proc drawgraph {} {
}
}
-set noreadobj [load libreadobj.so.0.0]
-set noreadobj 0
+set noreadobj [catch {load libreadobj.so.0.0}]
set stopped 0
set redisplaying 0
set stuffsaved 0