Just a wild guess, but in general you can't reuse the menu, you'll have to create a fresh one on the next button event.
On Jun 24, 2008, at 11:31 PM, anguila wrote:
I try the kevin's code, and it works, but only the first click, the next doesn't show the menu and return this error:
Can't call method "popup" on an undefined value at ./x line 14
--
If the monkey could type one keystroke every nanosecond, the expected waiting time until the monkey types out Hamlet is so long that the estimated age of the universe is insignificant by comparison ... this is not a practical method for writing plays.
-- Gian-Carlo Rota
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list