summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorEnno Boland (tox) <tox@s01.de>2009-09-06 14:09:05 +0200
committerEnno Boland (tox) <tox@s01.de>2009-09-06 14:09:05 +0200
commitc9e8b5ab5af23b447a0a6fca85366eed84d8dc7a (patch)
tree9d7a94b355ddba3c87f78b0056986da2dc385a47 /surf.c
parent4384cf198a38951839dfbd6abcab72d75076c593 (diff)
downloadsurf-c9e8b5ab5af23b447a0a6fca85366eed84d8dc7a.tar.gz
surf-c9e8b5ab5af23b447a0a6fca85366eed84d8dc7a.tar.bz2
surf-c9e8b5ab5af23b447a0a6fca85366eed84d8dc7a.zip
reworked navigate.
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/surf.c b/surf.c
index 3146967..b7e6dd0 100644
--- a/surf.c
+++ b/surf.c
@@ -348,11 +348,8 @@ loaduri(Client *c, const Arg *arg) {
void
navigate(Client *c, const Arg *arg) {
- gboolean forward = *(gboolean *)arg;
- if(forward)
- webkit_web_view_go_forward(c->view);
- else
- webkit_web_view_go_back(c->view);
+ gint steps = *(gint *)arg;
+ webkit_web_view_can_go_back_or_forward(WebKitWebView *web_view, steps);
}
Client *