aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-base-embed.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-07-01 05:27:22 +0800
committerXan Lopez <xan@src.gnome.org>2008-07-01 05:27:22 +0800
commit9dc44b16830dfa9f1b82f6af82ff4578beb6bc36 (patch)
tree3ebe82b8db9b5f158a4f6d81cc69e9c498888db6 /embed/ephy-base-embed.c
parent1e829eefa511c3463deddb7c3d99d4c27960e077 (diff)
downloadgsoc2013-epiphany-9dc44b16830dfa9f1b82f6af82ff4578beb6bc36.tar
gsoc2013-epiphany-9dc44b16830dfa9f1b82f6af82ff4578beb6bc36.tar.gz
gsoc2013-epiphany-9dc44b16830dfa9f1b82f6af82ff4578beb6bc36.tar.bz2
gsoc2013-epiphany-9dc44b16830dfa9f1b82f6af82ff4578beb6bc36.tar.lz
gsoc2013-epiphany-9dc44b16830dfa9f1b82f6af82ff4578beb6bc36.tar.xz
gsoc2013-epiphany-9dc44b16830dfa9f1b82f6af82ff4578beb6bc36.tar.zst
gsoc2013-epiphany-9dc44b16830dfa9f1b82f6af82ff4578beb6bc36.zip
embed: restore restore_zoom_level.
svn path=/trunk/; revision=8328
Diffstat (limited to 'embed/ephy-base-embed.c')
-rw-r--r--embed/ephy-base-embed.c35
1 files changed, 0 insertions, 35 deletions
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)