pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
42fdc77
)
Adapt navigate()
author
Quentin Rameau
<quinq@fifth.space>
Fri, 20 Nov 2015 00:00:38 +0000
(
01:00
+0100)
committer
Quentin Rameau
<quinq@fifth.space>
Fri, 20 Nov 2015 00:00:38 +0000
(
01:00
+0100)
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
8a98e74
..
e04f531
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-152,7
+152,7
@@
static void mousetargetchanged(WebKitWebView *v, WebKitHitTestResult *h,
guint modifiers, Client *c);
static void loadchanged(WebKitWebView *v, WebKitLoadEvent e, Client *c);
static void loaduri(Client *c, const Arg *arg);
guint modifiers, Client *c);
static void loadchanged(WebKitWebView *v, WebKitLoadEvent e, Client *c);
static void loaduri(Client *c, const Arg *arg);
-static void navigate(Client *c, const Arg *a
rg
);
+static void navigate(Client *c, const Arg *a);
static Client *newclient(Client *c);
static WebKitWebView *newview(Client *c, WebKitWebView *rv);
static void showview(WebKitWebView *v, Client *c);
static Client *newclient(Client *c);
static WebKitWebView *newview(Client *c, WebKitWebView *rv);
static void showview(WebKitWebView *v, Client *c);
@@
-836,10
+836,12
@@
loaduri(Client *c, const Arg *arg)
}
void
}
void
-navigate(Client *c, const Arg *a
rg
)
+navigate(Client *c, const Arg *a)
{
{
- int steps = *(int *)arg;
- webkit_web_view_go_back_or_forward(c->view, steps);
+ if (a->i < 0)
+ webkit_web_view_go_back(c->view);
+ else if (a->i > 0)
+ webkit_web_view_go_forward(c->view);
}
Client *
}
Client *