Fix GTK casts to restore correct compilation on GTK 2.0 after r6022.