|
|
|
@ -130,8 +130,7 @@ class UpdateBox(gtk.VBox):
|
|
|
|
|
self._update_status.set_text(text) |
|
|
|
|
return True |
|
|
|
|
|
|
|
|
|
@property |
|
|
|
|
def text(self): |
|
|
|
|
def _get_text(self): |
|
|
|
|
"""Return the text in the update box.""" |
|
|
|
|
text_buffer = self._text.get_buffer() |
|
|
|
|
|
|
|
|
@ -140,14 +139,15 @@ class UpdateBox(gtk.VBox):
|
|
|
|
|
|
|
|
|
|
return text_buffer.get_text(start, end, include_hidden_chars=False) |
|
|
|
|
|
|
|
|
|
@text.setter |
|
|
|
|
def text(self, text): |
|
|
|
|
def _set_text(self, text): |
|
|
|
|
"""Set the textarea text.""" |
|
|
|
|
self._text.get_buffer().set_text(text) |
|
|
|
|
return |
|
|
|
|
text = property(_get_text, _set_text) |
|
|
|
|
|
|
|
|
|
def _set_pixbuf(self, pixbuf): |
|
|
|
|
"""Update the avatar pixbuf.""" |
|
|
|
|
_log.debug('Avatar set') |
|
|
|
|
self.avatar.set_from_pixbuf(pixbuf) |
|
|
|
|
# pixbuf can only be set, not get. |
|
|
|
|
pixbuf = property(None, _set_pixbuf) |
|
|
|
|