Skip to content

Commit

Permalink
Merge pull request #186 from lynxlynxlynx/master
Browse files Browse the repository at this point in the history
two small usability improvements to the plugin manager & installer
  • Loading branch information
timlinux committed Jul 19, 2012
2 parents 62a51e8 + 7d469db commit d6c0c6d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion python/plugins/plugin_installer/installer_gui.py
Expand Up @@ -485,7 +485,16 @@ def addItem(p):
a.setText(2,ver)
a.setToolTip(2,verTip)
a.setText(3,desc)
a.setToolTip(3,descTip)
# split the tooltip into multiple lines when they are too long
tmp = ""
splitTip = ""
for word in descTip.split(" "):
if len(tmp + word) < 80:
tmp = tmp + " " + word
else:
splitTip += tmp + "\n"
tmp = word
a.setToolTip(3, splitTip+tmp)
a.setText(4,p["author"])
if p["homepage"]:
a.setToolTip(4,p["homepage"])
Expand Down

0 comments on commit d6c0c6d

Please sign in to comment.