Browse Source

xap/surf: Rebuilt against webkit-1.1.15.4.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
b17b62b27d
  1. 39
      xap/surf/surf-0.3-no_view_source.patch
  2. 5
      xap/surf/surf.SlackBuild

39
xap/surf/surf-0.3-no_view_source.patch

@ -1,39 +0,0 @@
diff -Naur surf-0.3.orig/config.def.h surf-0.3/config.def.h
--- surf-0.3.orig/config.def.h 2009-10-30 13:41:02.000000000 +0100
+++ surf-0.3/config.def.h 2009-12-29 13:47:29.190568067 +0100
@@ -28,7 +28,6 @@
{ MODKEY, GDK_j, scroll, { .i = +1 } },
{ MODKEY, GDK_k, scroll, { .i = -1 } },
{ 0, GDK_Escape, stop, { 0 } },
- { MODKEY, GDK_o, source, { 0 } },
{ MODKEY, GDK_g, spawn, SETPROP("_SURF_URI") },
{ MODKEY, GDK_slash, spawn, SETPROP("_SURF_FIND") },
{ MODKEY, GDK_n, find, { .b = TRUE } },
diff -Naur surf-0.3.orig/surf.c surf-0.3/surf.c
--- surf-0.3.orig/surf.c 2009-10-30 13:41:02.000000000 +0100
+++ surf-0.3/surf.c 2009-12-29 13:48:09.359907750 +0100
@@ -105,7 +105,6 @@
static void setatom(Client *c, Atom a, const char *v);
static void setup(void);
static void sigchld(int unused);
-static void source(Client *c, const Arg *arg);
static void spawn(Client *c, const Arg *arg);
static void stop(Client *c, const Arg *arg);
static void titlechange(WebKitWebView *v, WebKitWebFrame* frame, const char* title, Client *c);
@@ -715,16 +714,6 @@
}
void
-source(Client *c, const Arg *arg) {
- Arg a = { .b = FALSE };
- gboolean s;
-
- s = webkit_web_view_get_view_source_mode(c->view);
- webkit_web_view_set_view_source_mode(c->view, !s);
- reload(c, &a);
-}
-
-void
spawn(Client *c, const Arg *arg) {
if(fork() == 0) {
if(dpy)

5
xap/surf/surf.SlackBuild

@ -34,7 +34,7 @@ WGET=${WGET:-http://code.suckless.org/dl/surf/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-surf}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
EXT=${EXT:-txz}
@ -88,9 +88,6 @@ cd $NAME
# Needed to compile against GTK+ < 2.16.0
patch -p 1 < $CWD/surf-0.3-menu_item_label.patch
# Needed to compile against WebKit < r47865
patch -p 1 < $CWD/surf-0.3-no_view_source.patch
# Support for http_proxy environment variable
patch -p 1 < $CWD/surf-0.3-http_proxy.patch

Loading…
Cancel
Save