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:
parent
0bfb7c80d3
commit
f45f3c96e5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue