aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@svn.gnome.org>2007-09-09 20:37:41 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2007-09-09 20:37:41 +0800
commit97d914c35732490d84fa6228d565efa0a9d2a99b (patch)
treec8251f133648265674db6c9975dc4814a7d3889f /lib
parentbc3c4b0089e0c3502f4f6ef87e0e646b0769bcfb (diff)
downloadgsoc2013-epiphany-97d914c35732490d84fa6228d565efa0a9d2a99b.tar.gz
gsoc2013-epiphany-97d914c35732490d84fa6228d565efa0a9d2a99b.tar.zst
gsoc2013-epiphany-97d914c35732490d84fa6228d565efa0a9d2a99b.zip
Fixes bad state syncing when adding zoom controls to the toolbar. Fixes
2007-09-09 Cosimo Cecchi <cosimoc@svn.gnome.org> * lib/widgets/ephy-zoom-action.c: (connect_proxy): Fixes bad state syncing when adding zoom controls to the toolbar. Fixes bug #338005. Patch by Cyril Brulebois. svn path=/trunk/; revision=7355
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-zoom-action.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/widgets/ephy-zoom-action.c b/lib/widgets/ephy-zoom-action.c
index 1b6352baf..9845c2695 100644
--- a/lib/widgets/ephy-zoom-action.c
+++ b/lib/widgets/ephy-zoom-action.c
@@ -108,6 +108,10 @@ connect_proxy (GtkAction *action, GtkWidget *proxy)
{
if (EPHY_IS_ZOOM_CONTROL (proxy))
{
+ /* Ensure the sync is done when the item is added to
+ the toolbar */
+ sync_zoom_cb (action, NULL, proxy);
+
g_signal_connect_object (action, "notify::zoom",
G_CALLBACK (sync_zoom_cb), proxy, 0);