[XForms] Question #2: Relying on menu subitem IDs after fl_delete_menu_item().

Jason Cipriani jason.cipriani at gmail.com
Fri Jul 4 16:37:54 EDT 2008


To subscribers of the xforms list

-------------- next part --------------
On Fri, Jul 4, 2008 at 6:57 AM, Jens Thoms Toerring <jt at toerring.de> wrote:
> To get around that you have to change the file lib/menu.c.
> I append a version for 1.0.90 that hopefully works but I
> didn't test the changes with that version, just my newer
> one. Then add to lib/private/menu.h

I've done some more testing with this and uncovered a problem that I
am about to dig in to a little more.

Since this change, the functions fl_set_menu_item_mode and
fl_get_menu_item_mode no longer work unless the menu item's index is
the same as it's value. It doesn't matter if you specify an index or a
value to these functions -- if the two are different, they are
ignored. I suspect that something internally is inappropriately mixing
item indices and values, and had always relied on them being the same.

I've attached another test program that demonstrates this. The menu
(click on the word menu) items values are 5, 2, and 9 respectively.
Click the checkboxes then click on the menu. The checkboxes to disable
menu items only work for "green", where both the index and the value
are 2.

Maybe you have some insight, I'm also going to look through the code right now.

Thanks,
Jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deleteitem3.tar.gz
Type: application/x-gzip
Size: 1533 bytes
Desc: not available
Url : attachments/20080704/66471058/attachment-0005.gz 
-------------- next part --------------
_______________________________________________
To unsubscribe, send any message to
xforms-leave at bob.usuhs.mil or see: 
http://cweblog.usuhs.mil/mailman/listinfo/xforms
List Archive: http://bob.usuhs.mil/pipermail/xforms and
http://bob.usuhs.mil/mailserv/list-archives/
Development: http://savannah.nongnu.org/files/?group=xforms


More information about the Xforms mailing list