From b774b547788b74884b9eb690c548a6016e714023 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 3 Jun 2004 18:51:32 +0000 Subject: merge mozilla-embed-strings branch --- src/ephy-tab.c | 9 ++++++++- src/ephy-window.c | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ephy-tab.c b/src/ephy-tab.c index 1ef36aae6..b7f2e1729 100644 --- a/src/ephy-tab.c +++ b/src/ephy-tab.c @@ -676,7 +676,11 @@ ephy_tab_address_cb (EphyEmbed *embed, const char *address, EphyTab *tab) ephy_tab_set_link_message (tab, NULL); ephy_tab_set_icon_address (tab, NULL); ephy_tab_update_navigation_flags (tab, embed); +} +static void +ephy_tab_content_change_cb (EphyEmbed *embed, const char *address, EphyTab *tab) +{ /* restore zoom level */ if (address_has_web_scheme (address)) { @@ -700,7 +704,7 @@ ephy_tab_address_cb (EphyEmbed *embed, const char *address, EphyTab *tab) if (zoom != current_zoom) { tab->priv->setting_zoom = TRUE; - ephy_embed_set_zoom (embed, zoom, FALSE); + ephy_embed_set_zoom (embed, zoom); tab->priv->setting_zoom = FALSE; } } @@ -1284,6 +1288,9 @@ ephy_tab_init (EphyTab *tab) g_signal_connect_object (embed, "ge_favicon", G_CALLBACK (ephy_tab_favicon_cb), tab, 0); + g_signal_connect_object (embed, "ge_content_change", + G_CALLBACK (ephy_tab_content_change_cb), + tab, 0); cache = EPHY_FAVICON_CACHE (ephy_embed_shell_get_favicon_cache (EPHY_EMBED_SHELL (ephy_shell))); diff --git a/src/ephy-window.c b/src/ephy-window.c index 585e82cb4..cdb4b6281 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -2584,7 +2584,7 @@ ephy_window_set_zoom (EphyWindow *window, if (zoom != current_zoom) { - ephy_embed_set_zoom (embed, zoom, TRUE); + ephy_embed_set_zoom (embed, zoom); } } -- cgit v1.2.3