Configuration Information [Automatically generated, do not change]:
uname: Linux venus 3.16-3-amd64 #1 SMP Debian 3.16.5-1 (2014-10-10) x86_64 
GNU/Linux
compiler flags: gcc -Wall -Wno-implicit-int -g -O2  

FVWM Version:   2.6.6 (from cvs)
FVWM_MODULEDIR: /usr/lib/fvwm/2.6.6
FVWM_DATADIR:   /usr/share/fvwm
FVWM_USERDIR:   /home/jakob/.fvwm-verve

Description:

"SentToModel FvwmButton ChangeButton Id Title "   SomeText" ignores the leading 
Spaces.

Repeat-By:
If there is a FvwmButton-Configuration like

DestroyModuleConfig FvwmShelf: *
Module FvwmButtons FvwmShelf
*FvwmShelf: Colorset 10
*FvwmShelf: Frame 0
*FvwmShelf: Padding 3 0
*FvwmShelf: Columns 1
*FvwmShelf: Rows 1
*FvwmShelf: Geometry 160x40

*FvwmShelf: (1x1, Title(Side) "      Audio Mixer", Center, Id "Vol", Icon 
icon_fns.svg:24x24, Action(Mouse 1) `Exec exec gnome-alsamixer`)

it produces a button with an Icon on the left, followed by blanks and the text 
"Audio Mixer".

I want to change this text (Title) by a script periodically with this command:

SentToModel FvwmButton ChangeButton Id Title "   Some Text"

the leading blanks before "Some Text" are ignored, and the Title is directly 
after the Icon. 

I don't know the code, but it looks like some trim-function, which cut off 
leading (and trailing??) spaces in the function "SendToModel" with this exact 
call.

According to Thomas Funk and the fvwmforums.org, it's a bug (not a feature!)

You can see some pictures, explaining the bug visual on 
<http://www.fvwmforums.org/phpBB3/viewtopic.php?f=7&t=2880>

jakob

Reply via email to