When switching from GTK2 to GTK3, I started noticing empty squares to
the left of every menu item. I finally figured out this is related to
the HIDEMARK attribute and I should set to YES.

But for recent menu items managed via the IupConfigRecent API's, they
also have the empty squares.

I propose that these recent menu items should use HIDEMARK=YES (at
least by default) because generally we don't get direct access to
their handles so we can set this attribute easily.

(Yes, I ended up walking the children to find the menu items.)

In the common case, the recent menu items trigger an immediate option
(e.g. load a recent file), and this action doesn't usually have any
meaningful checkmark/active state. Furthermore, to toggle the
checkmarks, you would still need to get the handles to the items, so
the programmers still need to walk the children anyway.

With my proposal, the common case is you don't have to walk the
children to HIDEMARK=YES. And in the advanced case where you do need
the checkmarks, you aren't really any worse off than before because
you still have to walk the children regardless.

Thanks,
Eric

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to