epiphany r8261 - trunk/embed/webkit
- From: atoker svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8261 - trunk/embed/webkit
- Date: Fri, 30 May 2008 05:25:29 +0000 (UTC)
Author: atoker
Date: Fri May 30 05:25:29 2008
New Revision: 8261
URL: http://svn.gnome.org/viewvc/epiphany?rev=8261&view=rev
Log:
Bring back zoom support using the zoom-level property added in WebKit r34249.
Modified:
trunk/embed/webkit/webkit-embed.c
Modified: trunk/embed/webkit/webkit-embed.c
==============================================================================
--- trunk/embed/webkit/webkit-embed.c (original)
+++ trunk/embed/webkit/webkit-embed.c Fri May 30 05:25:29 2008
@@ -435,13 +435,16 @@
static float
impl_get_zoom (EphyEmbed *embed)
{
- return 1.0;
+ float zoom = 1.0f;
+ g_object_get (WEBKIT_EMBED (embed)->priv->web_view, "zoom-level", &zoom, NULL);
+ return zoom;
}
static void
impl_set_zoom (EphyEmbed *embed,
float zoom)
{
+ g_object_set (WEBKIT_EMBED (embed)->priv->web_view, "zoom-level", zoom, NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]