git-gui: Disable diff actions when no diff is active.
authorShawn O. Pearce <spearce@spearce.org>
Wed, 15 Nov 2006 23:55:05 +0000 (18:55 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 15 Nov 2006 23:55:05 +0000 (18:55 -0500)
commite8ab64461968392f126b0a0e2fef4ce8bdcca623
treedd99dc14199c63c9dd00ccdad5c4a42f865f943e
parentbbe3b3b9b93763ff4eff4fbb638b1c6a4bed8c95
git-gui: Disable diff actions when no diff is active.

There is no reason why the user should be able to operate on the diff
buffer if there is no currently selected diff; likewise the "File:"
label text appears rather silly looking all by itself when no diff
is being shown in the diff buffer.

So now we only enable widgets (like menu items) if there is a diff
currently showing, and we disable them when a diff isn't showing.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui