gdk3: remove trailing spaces