Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/palette.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/graphics/palette.py')
-rw-r--r--sugar/graphics/palette.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py
index 3573e96..9b27163 100644
--- a/sugar/graphics/palette.py
+++ b/sugar/graphics/palette.py
@@ -175,8 +175,9 @@ class Palette(gtk.Window):
return gtk.gdk.Rectangle(x, y, width, height)
def set_primary_text(self, label, accel_path=None):
- self._label.set_text(label)
- self._label.show()
+ if label is not None:
+ self._label.set_text(label)
+ self._label.show()
def set_content(self, widget):
if len(self._content.get_children()) > 0: