summaryrefslogtreecommitdiff
path: root/lib/choose_repository.tcl
diff options
context:
space:
mode:
authorLibravatar Twiinz <twiinz@gmail.com>2008-05-19 00:01:58 -0400
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2008-05-26 21:05:20 -0400
commit95dcfa3633004da0049d3d0fa03f80589cbcaf31 (patch)
treee74ec4010ecef7d0d867ba3fe09e0061804ce8aa /lib/choose_repository.tcl
parentgit-gui: Handle workdir detection when CYGWIN=nowinsymlinks (diff)
downloadtgif-95dcfa3633004da0049d3d0fa03f80589cbcaf31.tar.xz
git-gui: Vertically align textboxes with labels
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. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib/choose_repository.tcl')
-rw-r--r--lib/choose_repository.tcl8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/choose_repository.tcl b/lib/choose_repository.tcl
index ae4a4cd0a8..3180786158 100644
--- a/lib/choose_repository.tcl
+++ b/lib/choose_repository.tcl
@@ -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]