Code style adjustment and typo fix

Changed code alignment and format style to match other GTK / GObject
applications (such as libcangjie).