Turn off channel message auto-copy?

Discussion about XChat on Linux and other unix like systems.

Turn off channel message auto-copy?

Postby Skyalmian » 17 May 2012 20:38

When in a channel, on Linux, as messages are posted, they're auto-copied to the Clipboard. Is there any way to disable this? As they can fill up the history of a clipboard manager if there is one...
User avatar
Skyalmian
 
Posts: 6
Joined: 03 Sep 2011 19:56

Re: Turn off channel message auto-copy?

Postby bviktor » 18 May 2012 17:33

They are auto-copied upon selection, not upon posting. There is a patch for disabling it (in the bug tracker), or you can use xchat-wdk for this.
bviktor
 
Posts: 59
Joined: 04 Oct 2010 19:41

Re: Turn off channel message auto-copy?

Postby Julie3 » 05 Aug 2012 19:52

bviktor wrote:They are auto-copied upon selection, not upon posting. There is a patch for disabling it (in the bug tracker), or you can use xchat-wdk for this.
If you have any questions, you can post them here and I will try my best to help.


Hello bviktor,

do you know where I can download the patch? Is this patch harmful in any way?
Last edited by Julie3 on 24 Aug 2012 23:18, edited 1 time in total.
The art of being wise is knowing what to overlook.
Julie3
 
Posts: 1
Joined: 05 Aug 2012 19:48

Re: Turn off channel message auto-copy?

Postby Skyalmian » 06 Aug 2012 00:59

bviktor wrote:There is a patch for disabling it (in the bug tracker), or you can use xchat-wdk for this.

Can you find the patch? (I've used xChat-WDK on Windows, and seen the three extra options for it, and I was wondering why they were not available in Linux.)

[...left this post window open in search for it.] Did you mean this bug and this patch? Anyway, I incorporated the patch into my version of xchat-svn and was given these:

Code: Select all
patching file fe-gtk.c
Hunk #1 FAILED at 819.
1 out of 1 hunk FAILED -- saving rejects to file fe-gtk.c.rej
patching file menu.c
Hunk #1 succeeded at 1190 (offset -2 lines).
Hunk #2 succeeded at 1599 (offset -2 lines).
Hunk #3 succeeded at 1629 (offset -2 lines).
Hunk #4 succeeded at 1647 (offset -2 lines).
Hunk #5 succeeded at 1657 (offset -2 lines).
patching file xtext.c
Hunk #1 succeeded at 2075 (offset -7 lines).
Hunk #2 succeeded at 2097 with fuzz 1 (offset -12 lines).
patching file xtext.h
==> ERROR: A failure occurred in build().

fe-gtk.c.rej:

Code: Select all
--- fe-gtk.c   2010-11-21 14:39:08.083234000 -0700
+++ fe-gtk.c   2010-11-21 20:49:09.338234000 -0700
@@ -819,7 +819,7 @@
    {
    case 0:   /* window status */
 #if GTK_CHECK_VERSION(2,20,0)
-      if (!gtk_widget_get_visible (GTK_WINDOW (sess->gui->window)))
+      if (!gtk_widget_get_visible (sess->gui->window))
 #else
       if (!GTK_WIDGET_VISIBLE (GTK_WINDOW (sess->gui->window)))
 #endif

I've been using xChat for years so I'm just used to having text auto-copied to clipboard even in mysterious instances of when I don't select text...
User avatar
Skyalmian
 
Posts: 6
Joined: 03 Sep 2011 19:56

Re: Turn off channel message auto-copy?

Postby Skyalmian » 06 Aug 2012 02:04

...oh. There was a typo in the diff. I'm not a coder, and it took me a few minutes to see it!

--- xchat-2.8.8/src/fe-gtk/fe-gtk.c 2010-11-21 14:39:08.083234000 -0700
+++ xchat-2.8.8/src/fe-gtk/fe-gtk.c 2010-11-21 20:49:09.338234000 -0700
@@ -819,7 +819,7 @@ fe_gui_info (session *sess, int info_typ
{
case 0: /* window status */
#if GTK_CHECK_VERSION(2,20,0)
- if (!gtk_widget_get_visible (GTK_WINDOW (sess->gui->window)))
+ if (!gtk_widget_get_visible (sess->gui->window))
#else
if (!GTK_WIDGET_VISIBLE (GTK_WINDOW (sess->gui->window)))
#endif

WINDOW -> WIDGET

Now it compiled...
Testing...
Nice, it works! :mrgreen:
Sanity returns for my clipboard, hehehe. 8)

(Unrelated: Some of the forum smiles are missing their images (404)...)
User avatar
Skyalmian
 
Posts: 6
Joined: 03 Sep 2011 19:56

Re: Turn off channel message auto-copy?

Postby bviktor » 07 Aug 2012 11:30

No, I didn't mean that patch and bug. They were submitted to the XChat tracker, but now XChat-WDK is also available on Linux (as HexChat) along with the mentioned options.
bviktor
 
Posts: 59
Joined: 04 Oct 2010 19:41

Re: Turn off channel message auto-copy?

Postby Skyalmian » 10 Aug 2012 15:39

bviktor wrote:available on Linux (as HexChat) along with the mentioned options.

I did not know that. Thanks for mentioning. 8) (I've made the switch to hexchat-git after reading the Facebook post announcement.)
User avatar
Skyalmian
 
Posts: 6
Joined: 03 Sep 2011 19:56


Return to XChat

Who is online

Users browsing this forum: No registered users and 4 guests

cron