Inhomogeneous stationary states of two-dimensional magnetofluids