[Xfce4-commits] <midori:master> Conditionally connect web-process-crashed
Christian Dywan
noreply at xfce.org
Sat Apr 6 00:08:05 CEST 2013
Updating branch refs/heads/master
to 945a70bbf7addde3337a9f8ed32f2c7ca47c8ce4 (commit)
from 898da5f2bb2d14e271d5b0f2ad588c577fa5ebca (commit)
commit 945a70bbf7addde3337a9f8ed32f2c7ca47c8ce4
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Apr 6 00:06:22 2013 +0200
Conditionally connect web-process-crashed
midori/midori-view.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index c274f5a..e6fdafc 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -3845,8 +3845,6 @@ midori_view_constructor (GType type,
view->web_view = GTK_WIDGET (midori_tab_get_web_view (MIDORI_TAB (view)));
g_object_connect (view->web_view,
#ifdef HAVE_WEBKIT2
- "signal::web-process-crashed",
- midori_view_web_view_crashed_cb, view,
"signal::load-failed",
webkit_web_view_load_error_cb, view,
"signal::load-changed",
@@ -3928,6 +3926,9 @@ midori_view_constructor (GType type,
}
#ifdef HAVE_WEBKIT2
+ if (g_signal_lookup ("web-process-crashed", WEBKIT_TYPE_WEB_VIEW))
+ g_signal_connect (view->web_view, "web-process-crashed",
+ (GCallback)midori_view_web_view_crashed_cb, view);
view->scrolled_window = view->web_view;
#endif
More information about the Xfce4-commits
mailing list