2007/4/17, Sergio Villar Senin <[EMAIL PROTECTED]>:
Hi,

is there any way to revert a gtk_widget_tap_and_hold_setup? I mean I
have a widget that shows a popup as response to a tap and hold event. I
want to change the contents of that popup menu in execution time. So I
want to "unregister" the old one and setup a new one.

If possible, I'd suggest carrying the existing menu pointer to the
code that wants to change it and operate on that (it's just a
container after all, adding/removing items is possible).

Furthermore, if the contents are not totally dynamic, a more
convenient solution might be using UI Manager[1] to change the menu.
It takes a bit more effort to set up than just adding menuitems to a
menu, but once the initial work is done it is very flexible and
simplifies code a lot.

[1] http://live.gnome.org/GnomeLove/UIManagerTutorial

--
Kalle Vahlman, [EMAIL PROTECTED]
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi
_______________________________________________
maemo-developers mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to