~kris/suckless

tabbed

c9e8b5ab5af23b447a0a6fca85366eed84d8dc7a — Enno Boland (tox) 17 years ago 4384cf1
reworked navigate.
2 files changed, 4 insertions(+), 7 deletions(-)

M config.h
M surf.c
M config.h => config.h +2 -2
@@ 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_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 },
};


M surf.c => surf.c +2 -5
@@ 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 *