diff options
author | Eben Eliason <eben@localhost.localdomain> | 2008-04-03 05:23:00 (GMT) |
---|---|---|
committer | Eben Eliason <eben@localhost.localdomain> | 2008-04-03 05:23:00 (GMT) |
commit | f2002153dfd751b05aa9c3b3695204e40bc6aafd (patch) | |
tree | 6134cdf7b56e81fd543f352190bff3c707bbbc8a /sugar/graphics | |
parent | ec69482ba5b824620705a27f965494bfb6482c0d (diff) |
Added default to label arg in palette constructor
This leaves the API backward compatible but prevents the
need for new code to pass any unused arguments to the
constructor, instead depending on the property API.
Diffstat (limited to 'sugar/graphics')
-rw-r--r-- | sugar/graphics/palette.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index 40e66da..61c94b7 100644 --- a/sugar/graphics/palette.py +++ b/sugar/graphics/palette.py @@ -154,7 +154,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, accel_path=None, menu_after_content=False, + def __init__(self, label=None, accel_path=None, menu_after_content=False, text_maxlen=0, **kwargs): self.palette_state = self.PRIMARY |