This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Set world size in tcl/tk


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"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]