ts/zoompage/zoom/ - surf - customized build of surf, the suckless webkit browser
 (HTM) git clone git://src.adamsgaard.dk/surf
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d934d9c80b24debe4c0b6102ea0416c25a991c80
 (DIR) parent 124d3e89dd242042648a5615e3d975f085b1f0d5
 (HTM) Author: Enno Boland (tox) <tox@s01.de>
       Date:   Mon,  7 Sep 2009 09:51:51 +0200
       
       s/zoompage/zoom/
       Diffstat:
         M config.h                            |       7 ++++---
         M surf.c                              |       4 ++--
       
       2 files changed, 6 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/config.h b/config.h
       t@@ -17,9 +17,10 @@ static Key keys[] = {
            { 0,                    GDK_Return, hideurl,        {0},            URLBAR },
            { GDK_CONTROL_MASK,     GDK_p,      clipboard,      {.b = TRUE },   BROWSER },
            { GDK_CONTROL_MASK,     GDK_y,      clipboard,      {.b = FALSE},   BROWSER },
       -    { GDK_CONTROL_MASK,     GDK_plus,   zoompage,       {.i = +1 },     BROWSER },
       -    { GDK_CONTROL_MASK,     GDK_minus,  zoompage,       {.i = -1 },     BROWSER },
       -    { GDK_CONTROL_MASK,     GDK_0,      zoompage,       {.i = 0 },      BROWSER },
       +    { GDK_CONTROL_MASK,     GDK_equal,  zoom,           {.i = +1 },     BROWSER },
       +    { GDK_CONTROL_MASK,     GDK_plus,   zoom,           {.i = +1 },     BROWSER },
       +    { GDK_CONTROL_MASK,     GDK_minus,  zoom,           {.i = -1 },     BROWSER },
       +    { GDK_CONTROL_MASK,     GDK_0,      zoom,           {.i = 0 },      BROWSER },
            { GDK_CONTROL_MASK,     GDK_l,      navigate,       {.i = +1},      BROWSER },
            { GDK_CONTROL_MASK,     GDK_h,      navigate,       {.i = -1},      BROWSER },
            { 0,                    GDK_Escape, stop,           {0},            BROWSER },
 (DIR) diff --git a/surf.c b/surf.c
       t@@ -108,7 +108,7 @@ static void stop(Client *c, const Arg *arg);
        static void titlechange(WebKitWebView* view, WebKitWebFrame* frame, const gchar* title, Client *c);
        static void usage();
        static void updatetitle(Client *c, const gchar *title);
       -static void zoompage(Client *c, const Arg *arg);
       +static void zoom(Client *c, const Arg *arg);
        
        #include "config.h"
        
       t@@ -563,7 +563,7 @@ updatetitle(Client *c, const char *title) {
        }
        
        void
       -zoompage(Client *c, const Arg *arg) {
       +zoom(Client *c, const Arg *arg) {
                if(arg->i < 0)                /* zoom out */
                        webkit_web_view_zoom_out(c->view);
                else if(arg->i > 0)        /* zoom in */