diff options
author | Xan Lopez <xan@igalia.com> | 2012-03-06 02:18:30 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-03-07 04:49:46 +0800 |
commit | ca8957ac91d2da67e8ccf42ee297ec30056052b8 (patch) | |
tree | 28455e9003f8c5c7e4b255b0fe52b7100c941a80 /embed/ephy-embed.c | |
parent | f9ac9eaf73b94ca0ee3b7cf3a129500161f58ea2 (diff) | |
download | gsoc2013-epiphany-ca8957ac91d2da67e8ccf42ee297ec30056052b8.tar gsoc2013-epiphany-ca8957ac91d2da67e8ccf42ee297ec30056052b8.tar.gz gsoc2013-epiphany-ca8957ac91d2da67e8ccf42ee297ec30056052b8.tar.bz2 gsoc2013-epiphany-ca8957ac91d2da67e8ccf42ee297ec30056052b8.tar.lz gsoc2013-epiphany-ca8957ac91d2da67e8ccf42ee297ec30056052b8.tar.xz gsoc2013-epiphany-ca8957ac91d2da67e8ccf42ee297ec30056052b8.tar.zst gsoc2013-epiphany-ca8957ac91d2da67e8ccf42ee297ec30056052b8.zip |
ephy-history-service: add a "cleared" signal for the clear method
And use it in EphyEmbed instead of the legacy signal.
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r-- | embed/ephy-embed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index fa355b40d..36e0e43d7 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -371,7 +371,7 @@ zoom_changed_cb (WebKitWebView *web_view, } static void -ephy_embed_history_cleared_cb (EphyHistory *history, +ephy_embed_history_cleared_cb (EphyHistoryService *history_service, EphyEmbed *embed) { ephy_web_view_clear_history (EPHY_WEB_VIEW (embed->priv->web_view)); @@ -450,7 +450,7 @@ ephy_embed_finalize (GObject *object) } g_slist_free (priv->destroy_on_transition_list); - g_signal_handlers_disconnect_by_func (priv->history, + g_signal_handlers_disconnect_by_func (priv->history_service, ephy_embed_history_cleared_cb, embed); @@ -828,7 +828,7 @@ ephy_embed_constructed (GObject *object) priv->history = EPHY_HISTORY (ephy_embed_shell_get_global_history (ephy_embed_shell_get_default ())); priv->history_service = EPHY_HISTORY_SERVICE (ephy_embed_shell_get_global_history_service (ephy_embed_shell_get_default ())); - g_signal_connect (priv->history, + g_signal_connect (priv->history_service, "cleared", G_CALLBACK (ephy_embed_history_cleared_cb), embed); } |