[PATCH] fitting xconfig on 800x600 screen

Tim N. van der Leeuw (tnl@tifa.demon.nl)
Fri, 8 Jan 1999 16:13:30 +0100


Here is a small patch to xconfig to make it fit on a 800x600 screen.
Changing a few small things (see comments) it can be made to look a bit
better and fit on a 1024x768 screen still.

Errors in menu-layout that I previously mentioned (QIC-tape support and
watchdog timer support in the "mice" menu) are not fixed in this. Does
anyone have a hint where I could start searching? Or a patch for this?

Regards,

--Tim

diff -u linux/scripts/header.tk.orig linux/scripts/header.tk
--- linux/scripts/header.tk.orig Wed Jun 24 23:30:11 1998
+++ linux/scripts/header.tk Fri Jan 8 15:58:49 1999
@@ -41,9 +41,22 @@
wm title . "$text"
}

+#
+# Modified the placement of menu-buttons on the main window to fit on
+# a 800x600 screen.
+# I had to make several concessions to the prettiness to make everything
+# fit. I would rather use 2 columns than 3, and I would rather have all
+# buttons the same width. But that results in a window that fits on
+# 1024x768 but not on 800x600.
+#
+# Create the buttons with "-width 50" for fixed width buttons, and change
+# "3" to "2" for a 2-column layout.
+#
proc menu_option { w menu_num text } {
- button .f0.x$menu_num -text "$text" -width 50 -command "$w .$w \"$text\""
- pack .f0.x$menu_num -pady 0 -expand on
+ button .f0.x$menu_num -text "$text" -command "$w .$w \"$text\""
+ set menu_row [expr ($menu_num - 1) / 3]
+ set menu_col [expr ($menu_num - 1) % 3]
+ grid .f0.x$menu_num -pady 0 -padx 0 -row $menu_row -column $menu_col -sticky ew
}

#

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/