? Makefile ? Makefile.in ? aclocal.m4 ? config.cache ? config.h ? config.h.in ? config.log ? config.status ? configure ? stamp-h ? stamp-h.in ? stamp-h1 ? doc/Makefile ? doc/Makefile.in ? dpi/.deps ? dpi/Makefile ? dpi/Makefile.in ? dpi/bm_srv12 ? src/.deps ? src/Makefile ? src/Makefile.in ? src/dillo ? src/IO/.deps ? src/IO/Makefile ? src/IO/Makefile.in Index: src/commands.c =================================================================== RCS file: /sfhome/cvs/dillo/dillo/src/commands.c,v retrieving revision 1.38 diff -p -u -r1.38 commands.c --- src/commands.c 14 Mar 2003 19:14:49 -0000 1.38 +++ src/commands.c 27 Mar 2003 19:43:42 -0000 @@ -180,6 +180,15 @@ void a_Commands_findtext_callback(GtkWid */ void a_Commands_print_callback(GtkWidget *widget, gpointer client_data) { + BrowserWindow *bw = (BrowserWindow *)client_data; + char *buf; + gint size; + FILE *pipe; + + pipe = popen ("html2ps | lpr", "w"); + buf = a_Capi_url_read(a_History_get_url(NAV_TOP(bw)), &size); + fwrite (buf, sizeof(char), size, pipe); + fclose (pipe); } Index: src/menu.c =================================================================== RCS file: /sfhome/cvs/dillo/dillo/src/menu.c,v retrieving revision 1.39 diff -p -u -r1.39 menu.c --- src/menu.c 14 Mar 2003 19:14:50 -0000 1.39 +++ src/menu.c 27 Mar 2003 19:43:47 -0000 @@ -176,6 +176,8 @@ GtkWidget *a_Menu_popup_op_new(BrowserWi Menu_sep(menu); Menu_add(menu, "View page Source", NULL, bw, a_Commands_viewsource_callback, bw); + Menu_add(menu, "Print", NULL, bw, + a_Commands_print_callback, bw); Menu_add(menu, "Bookmark this page", NULL, bw, a_Commands_addbm_callback, bw);