Testing patch with r11709 on OS X 10.7.4 with GTK+/X11 2.24.10 and GTK+/Quartz 2.24.13:
The logic to detect settings from existing documents seems wrong:
- 'Show border shadow' is not checked ([x]) even if the document shows page border shadows.
- 'Show border shadow' is insensitive if it had been turned off for the document, and the visibility of the page borders itself needs to be toggled off/on again to enable (make sensitive) the page border shadow option
Probably 'Border on top of drawing' has the same reversed logic (I didn't have old test files at hand which would have allowed to quickly compare the display of the borders with the detected settings in 'Document Properties'.