From 9dc44b16830dfa9f1b82f6af82ff4578beb6bc36 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Mon, 30 Jun 2008 21:27:22 +0000 Subject: embed: restore restore_zoom_level. svn path=/trunk/; revision=8328 --- embed/ephy-base-embed.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'embed/ephy-base-embed.c') diff --git a/embed/ephy-base-embed.c b/embed/ephy-base-embed.c index 689cf80de..e5b3a1216 100644 --- a/embed/ephy-base-embed.c +++ b/embed/ephy-base-embed.c @@ -59,7 +59,6 @@ struct _EphyBaseEmbedPrivate { /* Flags */ guint is_blank : 1; guint is_loading : 1; - guint is_setting_zoom : 1; guint visibility : 1; gint8 load_percent; @@ -1492,40 +1491,6 @@ ephy_base_embed_set_security_level (EphyBaseEmbed *embed, } } -#if 0 -void -ephy_base_embed_restore_zoom_level (EphyBaseEmbed *membed, - const char *address) -{ - EphyBaseEmbedPrivate *priv = membed->priv; - - /* restore zoom level */ - if (ephy_embed_utils_address_has_web_scheme (address)) { - EphyHistory *history; - EphyNode *host; - GValue value = { 0, }; - float zoom = 1.0, current_zoom; - - history = EPHY_HISTORY - (ephy_embed_shell_get_global_history (embed_shell)); - host = ephy_history_get_host (history, address); - - if (host != NULL && ephy_node_get_property - (host, EPHY_NODE_HOST_PROP_ZOOM, &value)) { - zoom = g_value_get_float (&value); - g_value_unset (&value); - } - - current_zoom = ephy_embed_get_zoom (EPHY_EMBED (membed)); - if (zoom != current_zoom) { - priv->is_setting_zoom = TRUE; - ephy_embed_set_zoom (EPHY_EMBED (membed), zoom); - priv->is_setting_zoom = FALSE; - } - } -} -#endif - void ephy_base_embed_set_visibility (EphyBaseEmbed *embed, gboolean visibility) -- cgit v1.2.3