Improve return_if_fail. Partly implement appdefaults UI. Replace usage of EnableWindow with clearer enable/disable macros.