Skip to content

Commit 6565ca8

Browse files
committed
gitk: set minimum size on configuration dialog
gitk sets no size limit on its configuration dialog, allowing the user to collapse the window so almost nothing is visible. The geometry manager sets an initial size so all the widgets are visible, though ignores the potentially very long text in the entry widgets in doing so. Let's use this initial size as the minimum. The size information is computed in Tk's idle processing queue, so a wait is required. Signed-off-by: Mark Levedahl <[email protected]>
1 parent 8e65d38 commit 6565ca8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11894,6 +11894,10 @@ proc doprefs {} {
1189411894
grid $top.buts.ok $top.buts.can -padx 20
1189511895
grid $top.buts -sticky w -pady 10
1189611896
bind $top <Visibility> [list focus $top.buts.ok]
11897+
11898+
# let geometry manager determine run, set minimum size
11899+
update idletasks
11900+
wm minsize $top [winfo reqwidth $top] [winfo reqheight $top]
1189711901
}
1189811902
1189911903
proc choose_extdiff {} {

0 commit comments

Comments
 (0)