Sanel Zukan wrote:
> Hi,
> 
> I would propose removing fl_dont_execute hack (Menu.cxx) and be replaced
> with WHEN_NEVER clause. As far as I know, fl_dont_execute is only used
> inside fluid, but as I could find out from general list, people started to
> use it heavily.
> 
> Replacement like:
> 
> MenuBar mymenu;
> mymenu.when(WHEN_NEVER);
> // callbacks disabled for all childs
> 
> for me is much better than:
> 
> extern bool fl_dont_execute;
> fl_dont_execute = true;
> MenuBar mymenu;
> // callbacks disabled for all childs
> ...
> 
> Also, when() would work on Item widgets to, like:
> Item myitem;
> myitem.when(WHEN_NEVER); // callback disabled
> 
> This should sync interface with the rest of the code.
> 
> Comments ?

+1

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com
_______________________________________________
fltk-dev mailing list
[EMAIL PROTECTED]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to