Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/graphics
diff options
context:
space:
mode:
authorSimon Schampijer <erikos@localhost.localdomain>2008-08-14 19:31:42 (GMT)
committer Simon Schampijer <erikos@localhost.localdomain>2008-08-14 19:31:42 (GMT)
commitba850d5787168f1d02fe9b38c971a9d18164b1c7 (patch)
tree0b613110db6b0e838d1fccb4329432214fe653bd /src/sugar/graphics
parentbd264577e7a30565e9c27400633e440e6ce1f83d (diff)
Wrap message in alert needed for 7841
Diffstat (limited to 'src/sugar/graphics')
-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