diff options
author | Xan Lopez <xan@igalia.com> | 2013-03-21 23:58:05 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2013-03-22 00:16:56 +0800 |
commit | 20d54bffa239726ef9b41b106425e493f0cb754e (patch) | |
tree | 7672b39209d51c35cc3c2db813653f3ae5e9b0fc /src | |
parent | 061ae41638cf20778ba988ac9e128afcc3252545 (diff) | |
download | gsoc2013-epiphany-20d54bffa239726ef9b41b106425e493f0cb754e.tar gsoc2013-epiphany-20d54bffa239726ef9b41b106425e493f0cb754e.tar.gz gsoc2013-epiphany-20d54bffa239726ef9b41b106425e493f0cb754e.tar.bz2 gsoc2013-epiphany-20d54bffa239726ef9b41b106425e493f0cb754e.tar.lz gsoc2013-epiphany-20d54bffa239726ef9b41b106425e493f0cb754e.tar.xz gsoc2013-epiphany-20d54bffa239726ef9b41b106425e493f0cb754e.tar.zst gsoc2013-epiphany-20d54bffa239726ef9b41b106425e493f0cb754e.zip |
ephy-window: connect the reload/stop button the load status
We were not doing it at all in WebKit2.
https://bugzilla.gnome.org/show_bug.cgi?id=696301
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-window.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index b01909036..fe7967190 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -744,9 +744,15 @@ set_toolbar_visibility (EphyWindow *window, gboolean show_toolbar) } static void +#ifdef HAVE_WEBKIT2 +sync_tab_load_status (EphyWebView *view, + WebKitLoadEvent load_event, + EphyWindow *window) +#else sync_tab_load_status (EphyWebView *view, GParamSpec *pspec, EphyWindow *window) +#endif { EphyWindowPrivate *priv = window->priv; GtkActionGroup *action_group = priv->action_group; @@ -840,7 +846,11 @@ ephy_window_fullscreen (EphyWindow *window) /* sync status */ embed = window->priv->active_embed; +#ifdef HAVE_WEBKIT2 + sync_tab_load_status (ephy_embed_get_web_view (embed), WEBKIT_LOAD_STARTED, window); +#else sync_tab_load_status (ephy_embed_get_web_view (embed), NULL, window); +#endif sync_tab_security (ephy_embed_get_web_view (embed), NULL, window); sync_chromes_visibility (window); @@ -2745,7 +2755,11 @@ ephy_window_connect_active_embed (EphyWindow *window) sync_tab_security (view, NULL, window); sync_tab_document_type (view, NULL, window); +#ifdef HAVE_WEBKIT2 + sync_tab_load_status (view, WEBKIT_LOAD_STARTED, window); +#else sync_tab_load_status (view, NULL, window); +#endif sync_tab_is_blank (view, NULL, window); sync_tab_navigation (view, NULL, window); sync_tab_title (view, NULL, window); @@ -2804,9 +2818,15 @@ ephy_window_connect_active_embed (EphyWindow *window) g_signal_connect_object (view, "notify::document-type", G_CALLBACK (sync_tab_document_type), window, 0); +#ifndef HAVE_WEBKIT2 g_signal_connect_object (view, "notify::load-status", G_CALLBACK (sync_tab_load_status), window, 0); +#else + g_signal_connect_object (view, "load-changed", + G_CALLBACK (sync_tab_load_status), + window, 0); +#endif g_signal_connect_object (view, "notify::navigation", G_CALLBACK (sync_tab_navigation), window, 0); |