UIHandler's listener functions



When a control is inserted into a container, it can register toolbar and
menu items by using the container's UIHandler. However, telling the
control about selected menu items, toolbar buttons, etc, is also done by
the UIHandler interface, by calling menu_activated, etc on a control-side
UIHandler.
Shouldn't the listener part of UIHandler be separated into a new
interface, and pass an UIHandlerListener as the first argument of
menu_create, etc?

-- 
   .--= ULLA! =----------------------------.  finger cactus@cactus.rulez.org
   \      http://cactus.rulez.org           \   for PGP public key
    `----------= cactus@cactus.rulez.org =--'
A complex system that works is invariably found to have evolved from a simple system that works.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]