# HG changeset patch # User nadvornik # Date 1246178968 0 # Node ID d27275bc008ab7ee84855f5b2bb34f3c36f2a523 # Parent 5bb036e67d6d7f14e5256cf48f4400cd6f01f847 sync histogram state after enabling it from the menu diff -r 5bb036e67d6d -r d27275bc008a src/layout_util.c --- a/src/layout_util.c Sun Jun 28 08:32:27 2009 +0000 +++ b/src/layout_util.c Sun Jun 28 08:49:28 2009 +0000 @@ -685,7 +685,7 @@ if (gtk_toggle_action_get_active(action)) { image_osd_set(lw->image, OSD_SHOW_INFO | OSD_SHOW_STATUS | OSD_SHOW_HISTOGRAM); - gtk_toggle_action_set_active(overlay_action, TRUE); /* this calls layout_menu_overlay_cb */ + layout_util_sync_views(lw); /* show the overlay state, default channel and mode in the menu */ } else {