Limit length of labels in palettes to 60 chars by default #610

This commit is contained in:
Tomeu Vizoso 2009-04-06 19:03:42 +02:00
parent 5f3040ecd8
commit fbad85cde9
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ import gtk
from sugar.graphics.icon import Icon
class MenuItem(gtk.ImageMenuItem):
def __init__(self, text_label=None, icon_name=None, text_maxlen=0,
def __init__(self, text_label=None, icon_name=None, text_maxlen=60,
xo_color=None, file_name=None):
gobject.GObject.__init__(self)
self._accelerator = None

View File

@ -145,7 +145,7 @@ class Palette(gtk.Window):
# DEPRECATED: label is passed with the primary-text property, accel_path
# is set via the invoker property, and menu_after_content is not used
def __init__(self, label=None, accel_path=None, menu_after_content=False,
text_maxlen=0, **kwargs):
text_maxlen=60, **kwargs):
self.palette_state = self.PRIMARY