Hello. Hmm... I use goldendict for similar functionality. goldendict has a special key (default win+alt). When special key is pressed, current selected word will be translated in pop-up window, as it is shown in your first screenshot. How does goldendict do it? I think he scan all keypress actions from X server, may be Qt helps him. As I know, GNOME can add user's action to keypress. May be you need hack GNOME dict and GNONE, not gtk+.
I think, adding new context menu to gtk+ is a bad choice. gtk+ is toolkit for making GUI and is not suitable for this purpose. gtk+ is used on systems that do not have GNOME dict or GNOME. New context menu is useless for those systems. How I see the solution to this problem: GNOME must have special key with action "look up word". On this action GNOME must send selected word (I think it's not a big problem to get selected word) to GNOME dict. dict shows pop-up window with definition. Good luck with this feature. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list