From 34b542c05980d3e6002c7ad7a3b4afee4f004963 Mon Sep 17 00:00:00 2001 From: Reinier Heeres Date: Thu, 10 Jan 2008 18:21:42 +0000 Subject: Use ellipsis, #5765 --- (limited to 'webtoolbar.py') 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: -- cgit v0.9.1