pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4384cf1
)
reworked navigate.
author
Enno Boland (tox)
<tox@s01.de>
Sun, 6 Sep 2009 12:09:05 +0000
(14:09 +0200)
committer
Enno Boland (tox)
<tox@s01.de>
Sun, 6 Sep 2009 12:09:05 +0000
(14:09 +0200)
config.h
patch
|
blob
|
history
surf.c
patch
|
blob
|
history
diff --git
a/config.h
b/config.h
index
e637967
..
6c13e86
100644
(file)
--- a/
config.h
+++ b/
config.h
@@
-33,8
+33,8
@@
static Key general_keys[] = {
{ GDK_CONTROL_MASK, GDK_0, zoompage, {.f = +1.0 }, TRUE },
{ GDK_CONTROL_MASK, GDK_n, searchtext, {.b = TRUE}, TRUE },
{ GDK_CONTROL_MASK, GDK_N, searchtext, {.b = FALSE}, TRUE },
{ GDK_CONTROL_MASK, GDK_0, zoompage, {.f = +1.0 }, TRUE },
{ GDK_CONTROL_MASK, GDK_n, searchtext, {.b = TRUE}, TRUE },
{ GDK_CONTROL_MASK, GDK_N, searchtext, {.b = FALSE}, TRUE },
- { GDK_CONTROL_MASK, GDK_
h, navigate, {.b = TRUE},
TRUE },
- { GDK_CONTROL_MASK, GDK_
l, navigate, {.b = FALSE},
TRUE },
+ { GDK_CONTROL_MASK, GDK_
l, navigate, {.i = +1},
TRUE },
+ { GDK_CONTROL_MASK, GDK_
h, navigate, {.i = -1},
TRUE },
{ 0, GDK_Escape, stop, {0}, TRUE },
};
{ 0, GDK_Escape, stop, {0}, TRUE },
};
diff --git
a/surf.c
b/surf.c
index
3146967
..
b7e6dd0
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-348,11
+348,8
@@
loaduri(Client *c, const Arg *arg) {
void
navigate(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 *
}
Client *