Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2008-08-14 19:34:12 (GMT)
committer Simon Schampijer <simon@schampijer.de>2008-08-14 19:34:12 (GMT)
commitb1124f97941448447743f4a7c0d3d527fd7c3f4b (patch)
tree620ab8d11a52128f346e54d2c86b05e7122b0627 /src
parent63f7683997ff88c6b3ed3cf895131f3a6a055e37 (diff)
Wrap message in alert needed for 7841
Diffstat (limited to 'src')
-rw-r--r--src/sugar/graphics/alert.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sugar/graphics/alert.py b/src/sugar/graphics/alert.py
index fad90bb..a4d2a5a 100644
--- a/src/sugar/graphics/alert.py
+++ b/src/sugar/graphics/alert.py
@@ -85,7 +85,7 @@ class Alert(gtk.EventBox):
self._buttons_box.set_spacing(style.DEFAULT_SPACING)
self._hbox.pack_start(self._buttons_box)
- gtk.EventBox.__init__(self, **kwargs)
+ gobject.GObject.__init__(self, **kwargs)
self.set_visible_window(True)
self.add(self._hbox)
@@ -105,6 +105,10 @@ class Alert(gtk.EventBox):
if self._msg != value:
self._msg = value
self._msg_label.set_markup(self._msg)
+ width, height_ = self._msg_label.size_request()
+ self._msg_label.set_size_request(width-style.DEFAULT_SPACING,
+ -1)
+ self._msg_label.set_line_wrap(True)
elif pspec.name == 'icon':
if self._icon != value:
self._icon = value