void RotateSelectedPictures (Gtk.Window parent, RotateDirection direction)
{
RotateCommand command = new RotateCommand (parent);
int[] selected_ids = SelectedIds ();
if (command.Execute (direction, SelectedPhotos (selected_ids)))
query.MarkChanged (selected_ids, InvalidateData.Instance);
}