mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Updated version to go along with the merge of pull requests 175 and 176
(OpenBSD/NetBSD/DragonFly support), and a change to the wrapper to allow manual override of the number of icon columns (because sometimes some window managers are clueless about the correct window dimensions).
This commit is contained in:
@@ -859,6 +859,14 @@ proc magic::maketoolbar { framename } {
|
||||
|
||||
set locklist [tech locked]
|
||||
set ncols 0
|
||||
|
||||
# Sometimes the window manager can have bogus values, so allow an
|
||||
# environment variable LAYOUT_ICON_COLS to override the number of icon
|
||||
# columns.
|
||||
if {[info exists ::env(LAYOUT_ICON_COLS)]} {
|
||||
set ncols [expr $::env(LAYOUT_ICON_COLS) - 1]
|
||||
}
|
||||
|
||||
while {1} {
|
||||
incr ncols
|
||||
set i 0
|
||||
|
||||
Reference in New Issue
Block a user