Skip to content

Commit

Permalink
git-gui: Vertically align textboxes with labels
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Twiinz authored and Shawn O. Pearce committed May 27, 2008
1 parent 7f83aa2 commit 95dcfa3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/choose_repository.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 95dcfa3

Please sign in to comment.