git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH (GIT-GUI) 1/2] git-gui: Fix the Remote menu separator.
@ 2008-07-27  6:34 Alexander Gavrilov
  2008-07-27  6:35 ` [PATCH (GIT-GUI) 2/2] git-gui: Preserve scroll position on reshow_diff Alexander Gavrilov
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Gavrilov @ 2008-07-27  6:34 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: git

It was positioned incorrectly (offset by one position)
if the menu had a tear-off handle.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
---

	A couple of random fixes.

	-- Alexander

 git-gui.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/git-gui.sh b/git-gui.sh
index 9d0627d..da903a1 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -2926,6 +2926,7 @@ if {[is_enabled transport]} {
 	populate_fetch_menu
 	set n [expr {[.mbar.remote index end] - $n}]
 	if {$n > 0} {
+		if {[.mbar.remote type 0] eq "tearoff"} { incr n }
 		.mbar.remote insert $n separator
 	}
 	unset n
-- 
1.5.6.3.18.gfe82

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

end of thread, other threads:[~2008-07-27  6:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-27  6:34 [PATCH (GIT-GUI) 1/2] git-gui: Fix the Remote menu separator Alexander Gavrilov
2008-07-27  6:35 ` [PATCH (GIT-GUI) 2/2] git-gui: Preserve scroll position on reshow_diff Alexander Gavrilov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).