mirror of git://git.suckless.org/surf
Remove source(), it has been removed from webkit2gtk
WebKit2GTK doesn't provide a direct way to view source anymore, we'll have to do that ourselves with a GtkSourceView if we still need that.
This commit is contained in:
parent
b7cc1ae964
commit
4415c475f7
|
@ -109,7 +109,6 @@ static Key keys[] = {
|
||||||
|
|
||||||
{ 0, GDK_KEY_F11, fullscreen, { 0 } },
|
{ 0, GDK_KEY_F11, fullscreen, { 0 } },
|
||||||
{ 0, GDK_KEY_Escape, stop, { 0 } },
|
{ 0, GDK_KEY_Escape, stop, { 0 } },
|
||||||
{ MODKEY, GDK_KEY_o, source, { 0 } },
|
|
||||||
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_o, inspector, { 0 } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_o, inspector, { 0 } },
|
||||||
|
|
||||||
{ MODKEY, GDK_KEY_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
|
{ MODKEY, GDK_KEY_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
|
||||||
|
|
12
surf.c
12
surf.c
|
@ -197,7 +197,6 @@ static void scroll(GtkAdjustment *a, const Arg *arg);
|
||||||
static void setatom(Client *c, int a, const char *v);
|
static void setatom(Client *c, int a, const char *v);
|
||||||
static void setup(void);
|
static void setup(void);
|
||||||
static void sigchld(int unused);
|
static void sigchld(int unused);
|
||||||
static void source(Client *c, const Arg *arg);
|
|
||||||
static void spawn(Client *c, const Arg *arg);
|
static void spawn(Client *c, const Arg *arg);
|
||||||
static void stop(Client *c, const Arg *arg);
|
static void stop(Client *c, const Arg *arg);
|
||||||
static void titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c);
|
static void titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c);
|
||||||
|
@ -1372,17 +1371,6 @@ sigchld(int unused)
|
||||||
while (0 < waitpid(-1, NULL, WNOHANG));
|
while (0 < waitpid(-1, NULL, WNOHANG));
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
void
|
||||||
spawn(Client *c, const Arg *arg)
|
spawn(Client *c, const Arg *arg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue