Hi,
Here's a patch that fixes what I think is a "problem". Others might
disagree. This allows me to paste into firefox the urls which I "yank" in
surf.
Peter
On Wed, 4 Nov 2009, Anders Andersson wrote:
I've always thought there was something wrong with pasting in Firefox,
maybe this is the reason. I'm not really using surf so I don't know
what the problem is, care to explain?
// Anders
On Tue, Nov 3, 2009 at 4:20 PM, Peter John Hartman
<peterjohnhart...@gmail.com> wrote:
Hi,
I find that Firefox and perhaps others like to "paste" from the CLIPBOARD
rather than PRIMARY. Hence, in clipboard() in surf.c I have to duplicate
the following line (replacing PRIMARY with CLIPBOARD):
gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY),
c->linkhover ? c->linkhover : geturi(c), -1)
I'd like to see if we can just add this to vanilla? Is there a reason not
(other than the extra line of code)?
Peter
diff -r e9798f4e063a surf.c
--- a/surf.c Mon Nov 02 09:29:54 2009 +0100
+++ b/surf.c Wed Nov 04 16:00:34 2009 -0500
@@ -177,8 +177,10 @@
if(paste)
gtk_clipboard_request_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), pasteuri,
c);
- else
+ else {
gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), c->linkhover ?
c->linkhover : geturi(c), -1);
+
gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD), c->linkhover
? c->linkhover : geturi(c), -1);
+ }
}
void