From f2002153dfd751b05aa9c3b3695204e40bc6aafd Mon Sep 17 00:00:00 2001 From: Eben Eliason Date: Thu, 3 Apr 2008 01:23:00 -0400 Subject: [PATCH] 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. --- sugar/graphics/palette.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index 40e66dab..61c94b7b 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