[hackers] [surf] Applied print patch from pancake || Enno Boland (tox)

From: <hg_AT_suckless.org>
Date: Sun, 6 Sep 2009 08:08:44 +0000 (UTC)

changeset: 46:bacae860b1a9
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Sun Sep 06 10:10:13 2009 +0200
files: surf.c
description:
Applied print patch from pancake

diff -r ed940ea406e2 -r bacae860b1a9 surf.c
--- a/surf.c Fri Sep 04 13:23:36 2009 +0200
+++ b/surf.c Sun Sep 06 10:10:13 2009 +0200
@@ -197,8 +197,13 @@
         if(ev->state & GDK_CONTROL_MASK) {
                 switch(ev->keyval) {
                 case GDK_p:
- gtk_clipboard_request_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), pasteurl, c);
+ case GDK_P:
+ if((ev->state & GDK_SHIFT_MASK))
+ webkit_web_frame_print(webkit_web_view_get_main_frame(c->view));
+ else
+ gtk_clipboard_request_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), pasteurl, c);
                         return TRUE;
+
                 case GDK_y:
                         gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), webkit_web_view_get_uri(c->view), -1);
                         return TRUE;
Received on Sun Sep 06 2009 - 08:08:44 UTC

This archive was generated by hypermail 2.2.0 : Sun Sep 06 2009 - 08:12:16 UTC