Disable CTRL+W when GTK has Emacs-like key mappings
GTK allows to set
gtk-key-theme-name = "Emacs"
to have key shortcuts "as usual" (Ctrl+A to get to the beginning of the text, Ctrl+U to erase all,...).
The problem arises with Ctrl+W, which is used to delete the previous word. The mapping conflicts with Gajim's shortcut to close the chat window. This is rather annoying when one wants to delete the previous word and ends up closing the window in which he was typing.
The problem could be solved by not associating the Ctrl+W shortcut to the closing of the window when GTK uses the Emacs key theme or, better, not to catch Ctrl+W when the focus is on the text entry box of the chat window, to let GTK process it as it would according to whatever key theme it's in.