tAdapt print() - 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 0b5b798eb24ee6978c3ae932942105bf53122fe1
 (DIR) parent 2c2a7b608e01d2347812a84ecb08f98cb4d13789
 (HTM) Author: Quentin Rameau <quinq@fifth.space>
       Date:   Fri, 20 Nov 2015 00:30:17 +0100
       
       Adapt print()
       
       Diffstat:
         M surf.c                              |       7 ++++---
       
       1 file changed, 4 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/surf.c b/surf.c
       t@@ -164,7 +164,7 @@ static void showview(WebKitWebView *v, Client *c);
        static void newwindow(Client *c, const Arg *arg, gboolean noembed);
        static GtkWidget *createwindow(Client *c);
        static void pasteuri(GtkClipboard *clipboard, const char *text, gpointer d);
       -static void print(Client *c, const Arg *arg);
       +static void print(Client *c, const Arg *a);
        static GdkFilterReturn processx(GdkXEvent *xevent, GdkEvent *event,
                                        gpointer d);
        static gboolean winevent(GtkWidget *w, GdkEvent *e, Client *c);
       t@@ -1152,9 +1152,10 @@ pasteuri(GtkClipboard *clipboard, const char *text, gpointer d)
        }
        
        void
       -print(Client *c, const Arg *arg)
       +print(Client *c, const Arg *a)
        {
       -        webkit_web_frame_print(webkit_web_view_get_main_frame(c->view));
       +        webkit_print_operation_run_dialog(webkit_print_operation_new(c->view),
       +            GTK_WINDOW(c->win));
        }
        
        GdkFilterReturn