[PATCH] git-gui: don't hide the Browse button when resizing the repo chooser

Subsystems: the rest

DORMANTno replies

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

[PATCH] git-gui: don't hide the Browse button when resizing the repo chooser

From: Markus Heidelberg <hidden>
Date: 2016-06-15 22:46:23

Rather shrink the input field for "Create New Repository" and "Open
Existing Repository" as it's already done for "Clone Existing
Repository".

Signed-off-by: Markus Heidelberg <redacted>
---
 git-gui/lib/choose_repository.tcl |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/git-gui/lib/choose_repository.tcl b/git-gui/lib/choose_repository.tcl
index f9ff62a..09277e9 100644
--- a/git-gui/lib/choose_repository.tcl
+++ b/git-gui/lib/choose_repository.tcl
@@ -398,6 +398,8 @@ method _do_new {} {
 	grid $w_body.where.l $w_body.where.t $w_body.where.b -sticky ew
 	pack $w_body.where -fill x
 
+	grid columnconfigure $w_body.where 1 -weight 1
+
 	trace add variable @local_path write [cb _write_local_path]
 	bind $w_body.h <Destroy> [list trace remove variable @local_path write [cb _write_local_path]]
 	update
@@ -998,6 +1000,8 @@ method _do_open {} {
 	grid $w_body.where.l $w_body.where.t $w_body.where.b -sticky ew
 	pack $w_body.where -fill x
 
+	grid columnconfigure $w_body.where 1 -weight 1
+
 	trace add variable @local_path write [cb _write_local_path]
 	bind $w_body.h <Destroy> [list trace remove variable @local_path write [cb _write_local_path]]
 	update
-- 
1.6.2.106.gc2bb8

Re: [PATCH] git-gui: don't hide the Browse button when resizing the repo chooser

From: Stefan Näwe <hidden>
Date: 2016-06-15 22:46:23

Markus Heidelberg <markus.heidelberg <at> web.de> writes:
Rather shrink the input field for "Create New Repository" and "Open
Existing Repository" as it's already done for "Clone Existing
Repository".
Somewhat offtopic:

Is there a way to get the repository chooser _again_ after opening a repository  
(i.e. to switch to another repo) ?

Regards,

Stefan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help