This patch, xchat-autocopy-v4.patch, replaces xchat-autocopy-v3.patch.
It makes all the changes that patch made and in addition controls
the new Windows-menu item "Copy Selection". While the set variable
text_auto_copy_text is TRUE, the "Copy Selection" item is hidden.
When FALSE, the "Copy Selection" item is shown. It is greyed-out when
no selection is present; otherwise it is sensitive.
To implement this, new macro MENU_ID_COPY_SELECTION was defined. In order
to include this variable in xtext.c, new header file menu_id.h was defined,
the 12 (now 13) #defines in menu.h were moved to it, and menu.h now
#includes "menu_id.h", and of course now so does xtext.c. I tried merely
including menu.h in xtext.c but ended up with inscrutable dependencies.
---> PLEASE DO: svn add src/fe-gtk/menu_id.h <---
The v3 patch defines shortcut Shift+Ctrl+C, as noted in previous
Comment number 3. In order to do that, code in menu.c around new line
number 2198 was altered to add GDK_SHIFT_MASK for upper-case GDK keys.
This broke Control-I, for Xchat->Attach/Detach, so this patch changes
GDK-I to GDK-i, which it should have been all along.
http://rbh00.dyndns.org/~rbh00/xchat/xchat-autocopy-v4 gives a fuller
explanation of this change, including a hunk-by-hunk explanation for
every hunk of the patch.
xchat-autocopy-v4.patch supersedes v3