Indentation restyled. Using glib boolean type. Other minor changes.