Re: Menus - contolling popup/down behavior for GUI builders



Damon Chaplin <damon helixcode com> writes:

> What do people think about adding functions to have more control
> over when menus popup/down. This would be useful for GUI builders
> since we could do in-place editing of menu items.
> 
> I actually had a go at this a while back, and I think I only had
> to change a few things (like removing grab_add()s). I would try
> to put a patch together if it would be accepted.
> 
> (unless the functionality is already there and I missed it)

The functionality is not there right now.

My main worry about adding this is that the code is already darn
complex, and has a lot of complicated non-obvious conditionals,
especially involving the grabs and event propagation. 

For that reason, I'd almost rather see GUI builders just using
a pseudo-menu widget for this sort of thing. Especially if you
want to add things like dragging and dropping menu items around.
It should be possible to add GtkMenuItem to something other
than a GtkMenuShell; if not we can certainly fix that.

Other than the complexity thoug, I don't really object to adding
such a feature. Do you have a proposed interface?

Regards,
                                        Owen




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