sync histogram state after enabling it from the menu
authorVladimir Nadvornik <nadvornik@suse.cz>
Sun, 28 Jun 2009 08:49:28 +0000 (08:49 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Sun, 28 Jun 2009 08:49:28 +0000 (08:49 +0000)
src/layout_util.c

index a55aac0..a0a49e2 100644 (file)
@@ -685,7 +685,7 @@ static void layout_menu_histogram_cb(GtkToggleAction *action, gpointer data)
        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
                {