This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Set world size in tcl/tk
- To: xconq7 at sources dot redhat dot com
- Subject: Set world size in tcl/tk
- From: Jim Kingdon <kingdon at panix dot com>
- Date: Sat, 6 Jan 2001 16:55:29 -0500 (EST)
The tcl/tk variants dialog does not give one a button to set the world
size.
The following patch does fix it. I kind of suspect there may be a
better solution, but I'm not sure what it would be.
Index: tcltk/tkconq.tcl
===================================================================
RCS file: /cvs/xconq/xconq/tcltk/tkconq.tcl,v
retrieving revision 1.81
diff -u -r1.81 tkconq.tcl
--- tkconq.tcl 2000/12/27 01:48:49 1.81
+++ tkconq.tcl 2001/01/06 18:26:57
@@ -450,6 +450,10 @@
global varianttext variantstate
global vary_world_size vary_real_time
+ # Don't know if this is the best solution, but the 400x320 size
+ # set in popup_splash_screen isn't big enough.
+ pack propagate .newgame.top true
+
if { !"[ winfo exists .newgame.top.header ]" } {
interpret_variants
label .newgame.top.header -text "Variants for $selected_game_title"