patch-2.2.0-pre8 linux/scripts/tkgen.c
Next file: linux/scripts/tkparse.c
Previous file: linux/scripts/tail.tk
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Fri Jan 15 14:36:20 1999
- Orig file:
v2.2.0-pre7/linux/scripts/tkgen.c
- Orig date:
Wed Jan 13 15:00:45 1999
diff -u --recursive --new-file v2.2.0-pre7/linux/scripts/tkgen.c linux/scripts/tkgen.c
@@ -74,6 +74,14 @@
* - Call clear_globalflags when writing out update_mainmenu.
* This fixes the missing global/vfix lines for ARCH=alpha on 2.2.0-pre4.
*
+ * 8 January 1999, Michael Elizabeth Chastain <mec@shout.net>
+ * - Emit menus_per_column
+ *
+ * 1999 01 04
+ * Michael Elizabeth Chastain <mec@shout.net>
+ * - Call clear_globalflags when writing out update_mainmenu.
+ * This fixes the missing global/vfix lines for ARCH=alpha on 2.2.0-pre4.
+ *
* TO DO:
* - clean up - there are useless ifdef's everywhere.
* - better comments throughout - C code generating tcl is really cryptic.
@@ -751,8 +759,13 @@
/*
* Record this so we can set up the prev/next buttons correctly.
+ * Menus per column computation has extra button space as follows:
+ * 4 for the save/quit/load/store buttons,
+ * 1 for the blank space above save/quit/load/store
+ * 2 to make the rounding work
*/
tot_menu_num = menu_num;
+ printf( "set menus_per_column %d\n\n", (tot_menu_num + 4 + 1 + 2) / 3 );
/*
* Now start generating the actual wish script that we will use.
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov