summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-11-19 16:38:58 +0100
committerQuentin Rameau <quinq@fifth.space>2015-11-20 00:34:22 +0100
commit72905b8bfc0f91cd3b6d0ac845c5cae92f8e35db (patch)
tree610a952897129f0545542835f91348e1b1182027 /surf.c
parentbb1fc4195f4fa3be5625d0f663e537a22ccf1877 (diff)
downloadsurf-72905b8bfc0f91cd3b6d0ac845c5cae92f8e35db.tar.gz
surf-72905b8bfc0f91cd3b6d0ac845c5cae92f8e35db.tar.bz2
surf-72905b8bfc0f91cd3b6d0ac845c5cae92f8e35db.zip
Remove windowobjectcleared(), execute scripts on load finished
The “window-object-cleared” signal is not directly accessible for specific WebViews now. We'll have to use an Extension or rewrite the JavaScript running functions.
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/surf.c b/surf.c
index d6d644d..eb57824 100644
--- a/surf.c
+++ b/surf.c
@@ -188,8 +188,6 @@ static void togglestyle(Client *c, const Arg *arg);
static void updatetitle(Client *c);
static void updatewinid(Client *c);
static void usage(void);
-static void windowobjectcleared(GtkWidget *w, WebKitWebFrame *frame,
- JSContextRef js, JSObjectRef win, Client *c);
static void zoom(Client *c, const Arg *arg);
/* configuration, allows nested code to access above variables */
@@ -994,9 +992,6 @@ newview(Client *c, WebKitWebView *rv)
"decide-policy",
G_CALLBACK(decidepolicy), c);
g_signal_connect(G_OBJECT(v),
- "window-object-cleared",
- G_CALLBACK(windowobjectcleared), c);
- g_signal_connect(G_OBJECT(v),
"load-changed",
G_CALLBACK(loadchanged), c);
g_signal_connect(G_OBJECT(v),
@@ -1037,8 +1032,6 @@ showview(WebKitWebView *v, Client *c)
gdk_window_set_events(gwin, GDK_ALL_EVENTS_MASK);
gdk_window_add_filter(gwin, processx, c);
- runscript(frame);
-
/* This might conflict with _zoomto96dpi_. */
if (zoomlevel != 1.0)
webkit_web_view_set_zoom_level(c->view, zoomlevel);
@@ -1529,13 +1522,6 @@ usage(void)
}
void
-windowobjectcleared(GtkWidget *w, WebKitWebFrame *frame, JSContextRef js,
- JSObjectRef win, Client *c)
-{
- runscript(frame);
-}
-
-void
zoom(Client *c, const Arg *arg)
{
c->zoomed = TRUE;