Fixed bugs for Mono (Gtk) App Platform
code formatting