The return value should be an int

Fix https://bugzilla.gnome.org/show_bug.cgi?id=720808