문제

I find GtkEntry has a default context menu
But I really do not want it, how can I disable it
I googled but no effective way found

도움이 되었습니까?

해결책

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top