1. Erik Grinaker
  2. Revelation

Commits

Mikel Olasagasti Uranga  committed e1d5846

Fix max length of a webpage entry URL label to 60 chars. Fixes #45

  • Participants
  • Parent commits fcb9af2
  • Branches default

Comments (0)

Files changed (1)

File src/lib/ui.py

View file
 
 		self.label = self.get_children()[0]
 
+		"If URI is too long reduce it for the label"
+		if len(label) > 60:
+			self.label.set_text(label[0:59] + " (...)")
 
 	def set_ellipsize(self, ellipsize):
 		"Sets ellipsize for label"