aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/widgets/ephy-zoom-action.c4
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b9e90f704..51fbefb7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2007-09-09 Cosimo Cecchi <cosimoc@svn.gnome.org>
* src/ephy-find-toolbar.c: (set_status_notfound_cb), (set_status),
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);