Git development
 help / color / mirror / Atom feed
* [PATCH (GITK)] gitk: Make line origin search update the busy status.
@ 2008-11-13 20:43 Alexander Gavrilov
  2008-11-13 22:00 ` Paul Mackerras
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Gavrilov @ 2008-11-13 20:43 UTC (permalink / raw)
  To: git; +Cc: Paul Mackerras

Currently the 'show origin of this line' feature does
not update the status field of the gitk window, so it
is not evident that any processing is going on. It may
seem at first that clicking the item had no effect.

This commit adds calls to set and clear the busy
status with an appropriate title, similar to other
search commands.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
---
 gitk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gitk b/gitk
index e4562d7..3fb9c44 100755
--- a/gitk
+++ b/gitk
@@ -3400,6 +3400,7 @@ proc show_line_source {} {
 	error_popup [mc "Couldn't start git blame: %s" $err]
 	return
     }
+    nowbusy blaming [mc "Blaming"]
     fconfigure $f -blocking 0
     set i [reg_instance $f]
     set blamestuff($i) {}
@@ -3413,6 +3414,7 @@ proc stopblaming {} {
     if {[info exists blameinst]} {
 	stop_instance $blameinst
 	unset blameinst
+	notbusy blaming
     }
 }
 
@@ -3427,6 +3429,7 @@ proc read_line_source {fd inst} {
     }
     unset commfd($inst)
     unset blameinst
+    notbusy blaming
     fconfigure $fd -blocking 1
     if {[catch {close $fd} err]} {
 	error_popup [mc "Error running git blame: %s" $err]
-- 
1.6.0.3.15.gb8d36

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH (GITK)] gitk: Make line origin search update the busy status.
  2008-11-13 20:43 [PATCH (GITK)] gitk: Make line origin search update the busy status Alexander Gavrilov
@ 2008-11-13 22:00 ` Paul Mackerras
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mackerras @ 2008-11-13 22:00 UTC (permalink / raw)
  To: Alexander Gavrilov; +Cc: git

Alexander Gavrilov writes:

> Currently the 'show origin of this line' feature does
> not update the status field of the gitk window, so it
> is not evident that any processing is going on. It may
> seem at first that clicking the item had no effect.
> 
> This commit adds calls to set and clear the busy
> status with an appropriate title, similar to other
> search commands.

I have been meaning to do this myself.  I want to find something
better than "Blaming" to put in the status field, though, since
"blaming" is jargon in this context.  Actually, "Searching" would
probably do.

Paul.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-13 22:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13 20:43 [PATCH (GITK)] gitk: Make line origin search update the busy status Alexander Gavrilov
2008-11-13 22:00 ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox