Re: Reg. modifying GTK+ to add menu option



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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]