[PATCH] xfdesktop/menueditor/utils.c

Jean-François Wauthy pollux at xfce.org
Thu Jan 19 15:42:31 CET 2006


Le jeudi 19 janvier 2006 à 09:02 +0100, Matthias Eller a écrit :
> Hi,
> 
hi

> theres a small bug when writing the xml file of the desktop menu.
> If there's a submenu that contais another submenu at its _end_ which
> contains some items then there are </menu> missing when saving the setup
> because the depth of the path makes 2 (or more) steps at once (because
> no items follow the 2nd submenu)
> 
> this patch could do the trick. It writes as much </menu> tags as steps
> are made back.
> 
Your patch fixes the problem but leaks some memory (the g_strnfill
result) and doesn't indent correctly the output. I fixed (r19496) the
issue using your idea in a for loop and freeing the allocated memory.

Thanks for the report,
Cheers
-- 
Jean-François Wauthy <pollux at xfce.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20060119/6b34c2f4/attachment.pgp>


More information about the Xfce4-dev mailing list