From 97d914c35732490d84fa6228d565efa0a9d2a99b Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sun, 9 Sep 2007 12:37:41 +0000 Subject: Fixes bad state syncing when adding zoom controls to the toolbar. Fixes 2007-09-09 Cosimo Cecchi * 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 --- lib/widgets/ephy-zoom-action.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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); -- cgit v1.2.3