fix: for gtk 3.8, infinity loop in calculation of tab width, when tab width more than allowed width.