reworked navigate.

This commit is contained in:
Enno Boland (tox)
2009-09-06 14:09:05 +02:00
parent 4384cf198a
commit c9e8b5ab5a
2 changed files with 4 additions and 7 deletions
+2 -5
View File
@@ -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 *