Introduction
Introduction Statistics Contact Development Disclaimer Help
tadded apos p/y-patch, thanks :) - surf - customized build of surf, the suckles…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit e6feabb4f6ef0a19202fb1e3b11ad8b9f4771dc7
parent a122748ae79d46b841c221669cf6a33cb6641b30
Author: Enno Boland (Gottox) <[email protected]>
Date: Tue, 9 Jun 2009 22:08:59 +0200
added apos p/y-patch, thanks :)
Diffstat:
M surf.c | 14 ++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/surf.c b/surf.c
t@@ -53,6 +53,7 @@ static void loadfile(Client *c, const gchar *f);
static void loaduri(Client *c, const gchar *uri);
static Client *newclient();
static WebKitWebView *newwindow(WebKitWebView *v, WebKitWebFrame *f, Client *…
+static void pasteurl(GtkClipboard *clipboard, const gchar *text, gpointer d);
static GdkFilterReturn processx(GdkXEvent *xevent, GdkEvent *event, gpointer d…
static void progresschange(WebKitWebView *view, gint p, Client *c);
static void setup(void);
t@@ -198,6 +199,12 @@ keypress(GtkWidget* w, GdkEventKey *ev, Client *c) {
}
if(ev->state & GDK_CONTROL_MASK) {
switch(ev->keyval) {
+ case GDK_p:
+ gtk_clipboard_request_text(gtk_clipboard_get(GDK_SELEC…
+ return TRUE;
+ case GDK_y:
+ gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION…
+ return TRUE;
case GDK_r:
case GDK_R:
if((ev->state & GDK_SHIFT_MASK))
t@@ -399,6 +406,13 @@ newwindow(WebKitWebView *v, WebKitWebFrame *f, Client *c…
return n->view;
}
+
+void
+pasteurl(GtkClipboard *clipboard, const gchar *text, gpointer d) {
+ if(text!=NULL)
+ loaduri((Client *)d, text);
+}
+
GdkFilterReturn
processx(GdkXEvent *e, GdkEvent *event, gpointer d) {
Client *c = (Client *)d;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.