Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webtoolbar.py
diff options
context:
space:
mode:
authorReinier Heeres <rwh@rwh.(none)>2008-01-10 18:21:42 (GMT)
committer Reinier Heeres <rwh@rwh.(none)>2008-01-10 18:21:42 (GMT)
commit34b542c05980d3e6002c7ad7a3b4afee4f004963 (patch)
treef58c64cfc3a401be606a1a5082849e2ace02bff8 /webtoolbar.py
parent58c423b08408a34d479d513de2219b3fe43930cd (diff)
Use ellipsis, #5765
Diffstat (limited to 'webtoolbar.py')
-rwxr-xr-xwebtoolbar.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index ec09336..e97d94d 100755
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -25,7 +25,9 @@ from xpcom.components import interfaces
from xpcom import components
from sugar.graphics.toolbutton import ToolButton
+from sugar.graphics.menuitem import MenuItem
from sugar._sugarext import AddressEntry
+import pango
import sessionhistory
import progresslistener
@@ -195,7 +197,7 @@ class WebToolbar(gtk.Toolbar):
continue
entry = session_history.getEntryAtIndex(i, False)
- menu_item = gtk.MenuItem(entry.title)
+ menu_item = MenuItem(entry.title, text_maxlen=80)
menu_item.connect('activate', self._history_item_activated_cb, i)
if i < current_page_index: