tag 279402 +patch
retitle 279402 xastir: LessTif bug causes menu items to be incorrectly 
positioned
thanks

> It might be a LessTif bug rather than XASTIR. Unsure.

After seeing this bug raport I decided to try if xastir would work
better when compiled against Open Motif instead of LessTif. I fetched
and unpacked xastir's debianized source (1.4.1-2) and installed all 
of it's build depencies except for lesstif2-dev, which I substituted
with libmotif-dev (2.2.3-1) from non-free.

After building xastir, overriding the build depencies by giving '-d' 
option to dpkg-buildpackage, and installing the resulting package the 
menus worked just fine.

Next I reinstalled vanilla 1.4.1-2 from archives and tried if recompiling
LessTif (1:0.93.94-11) would help. No such luck. After some browsing of 
LessTif's CVS and changelog I found following changelog entry:

> 2004/10/21 21:23:28
> author: dannybackx
> lib/Xm-2.1/RCUtils.c(1.4)
> 
> Fix by Dave Williss for his problem with label position in menus.
> The thing that made it so hard to find was that it computes a left 
> margin, but to save memory, stores it in kid_geometry->margin_top.
>
> The fix to the problem is to change rcutils.c  [...]
>
> Adding margin_top (which is really left margin) to the width seems
> counter-intuitive to me, but without it, menu items which are 
> pull-right don't line up correctly.  If this ends up breaking anything 
> else, it could probably be changed to only do it if the RowColumn is a 
> menu pane

I fetched this change from LessTif's CVS [1], copied it over previous
version of lib/Xm-2.1/RCutils.c (which, despite it's $Id$ tags, seems 
to be identical to revision 1.2 in current CVS) and rebuild the LessTif 
packages again. After installing this version (and restarting xastir) 
the problem vanished again.

So it seems that this really is a LessTif bug and that there is a working
patch for it. This bug probably needs to have it's severity inflated and
to be either cloned or reassigned to LessTif (or maybe even merged with
similar reports, like #287187).

-kimju

[1] 
http://cvs.sourceforge.net/viewcvs.py/*checkout*/lesstif/lesstif/lib/Xm-2.1/RCUtils.c?rev=1.4


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to