However that doesn't work either (although the error is different). It seems to be calling popup_at_rect() internally but with the wrong arguments, maybe there is a way around it.
I'm not sure this is of any use, but given that I didn't know Vala even existed before today, I'm afraid I can't go much further.
By digging around a bit I found out that the call used in the current code to show the menu:
popup(null, null, null, 0, Gtk.get_ current_ event_time( ));
Is now deprecated. I assume it should be:
popup_at_pointer();
However that doesn't work either (although the error is different). It seems to be calling popup_at_rect() internally but with the wrong arguments, maybe there is a way around it.
I'm not sure this is of any use, but given that I didn't know Vala even existed before today, I'm afraid I can't go much further.