diff options
author | Enno Boland (tox) <tox@s01.de> | 2009-09-06 13:54:29 +0200 |
---|---|---|
committer | Enno Boland (tox) <tox@s01.de> | 2009-09-06 13:54:29 +0200 |
commit | 4384cf198a38951839dfbd6abcab72d75076c593 (patch) | |
tree | 0b80bed71b7b7599c839f3de0cb37f159e6eab2b /surf.c | |
parent | 80d33d696d73c14c81da6e35ab06ee97517c9852 (diff) | |
download | surf-4384cf198a38951839dfbd6abcab72d75076c593.tar.gz surf-4384cf198a38951839dfbd6abcab72d75076c593.tar.bz2 surf-4384cf198a38951839dfbd6abcab72d75076c593.zip |
reappling printing; changing some keys.
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -98,11 +98,12 @@ static Client *newclient(); static WebKitWebView *newwindow(WebKitWebView *v, WebKitWebFrame *f, Client *c); static void pasteurl(GtkClipboard *clipboard, const gchar *text, gpointer d); static GdkFilterReturn processx(GdkXEvent *xevent, GdkEvent *event, gpointer d); +static void print(Client *c, const Arg *arg); static void progresschange(WebKitWebView *view, gint p, Client *c); static void request(SoupSession *s, SoupMessage *m, Client *c); static void setcookie(char *name, char *val, char *dom, char *path, long exp); static void reload(Client *c, const Arg *arg); -static void setup(void); +static void setup(); static void titlechange(WebKitWebView* view, WebKitWebFrame* frame, const gchar* title, Client *c); static void searchtext(Client *c, const Arg *arg); @@ -473,6 +474,11 @@ processx(GdkXEvent *e, GdkEvent *event, gpointer d) { } void +print(Client *c, const Arg *arg) { + webkit_web_frame_print(webkit_web_view_get_main_frame(c->view)); +} + +void progresschange(WebKitWebView* view, gint p, Client *c) { c->progress = p; updatetitle(c, NULL); |