Did you try to just hide/unref/destroy the wigdet passed (the GtkMenu
being spawned) within a signal handler hooked to populate-popup
?
Another option would be to filter out all right click events by hooking up to GtkWidget
's (actually yout GtkEntry
which is a subclass of GtkWidget
) clicked
signal and returning TRUE (for being handled)