git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Two minor tweaks on git-gui where textboxes weren't vertically centered with their labels and buttons
@ 2008-05-18  5:18 Twiinz
  2008-05-19  4:07 ` Shawn O. Pearce
  0 siblings, 1 reply; 12+ messages in thread
From: Twiinz @ 2008-05-18  5:18 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

In git-gui after clicking either on 'Create New Repository' or 'Open
Existing Repository' the form elements aren't centered like they are
pretty much everywhere else in the app. At least when ran on a mac,
haven't checked on other platforms.

Using grid instead of pack seems to fix this.

Hope that helps, cheers,
/twiinz

[-- Attachment #2: choose_repository.tcl.patch --]
[-- Type: application/octet-stream, Size: 857 bytes --]

--- choose_repository.old.tcl	2008-05-18 11:54:23.000000000 +0700
+++ choose_repository.tcl	2008-05-18 11:56:41.000000000 +0700
@@ -388,9 +388,7 @@ method _do_new {} {
 		-command [cb _new_local_path]
 	set w_localpath $w_body.where.t
 
-	pack $w_body.where.b -side right
-	pack $w_body.where.l -side left
-	pack $w_body.where.t -fill x
+	grid $w_body.where.l $w_body.where.t $w_body.where.b -sticky ew
 	pack $w_body.where -fill x
 
 	trace add variable @local_path write [cb _write_local_path]
@@ -987,9 +985,7 @@ method _do_open {} {
 		-text [mc "Browse"] \
 		-command [cb _open_local_path]
 
-	pack $w_body.where.b -side right
-	pack $w_body.where.l -side left
-	pack $w_body.where.t -fill x
+	grid $w_body.where.l $w_body.where.t $w_body.where.b -sticky ew
 	pack $w_body.where -fill x
 
 	trace add variable @local_path write [cb _write_local_path]

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

end of thread, other threads:[~2008-05-23  0:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-18  5:18 Two minor tweaks on git-gui where textboxes weren't vertically centered with their labels and buttons Twiinz
2008-05-19  4:07 ` Shawn O. Pearce
2008-05-19  5:34   ` Twiinz
2008-05-19 10:28     ` Johannes Schindelin
2008-05-21  7:01       ` Junio C Hamano
2008-05-22 12:11         ` Shawn O. Pearce
2008-05-22 12:45           ` Twiinz
2008-05-22 12:55             ` Shawn O. Pearce
2008-05-22 13:09               ` Twiinz
2008-05-22 17:46           ` Junio C Hamano
2008-05-22 22:57             ` Shawn O. Pearce
2008-05-22 23:59               ` Junio C Hamano

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).