|
|
@ -44,6 +44,10 @@ class UpdateBox(gtk.VBox): |
|
|
|
|
|
|
|
|
|
|
|
__gsignals__ = { |
|
|
|
__gsignals__ = { |
|
|
|
'text-focus': ( |
|
|
|
'text-focus': ( |
|
|
|
|
|
|
|
gobject.SIGNAL_RUN_LAST, |
|
|
|
|
|
|
|
gobject.TYPE_NONE, |
|
|
|
|
|
|
|
()), |
|
|
|
|
|
|
|
'status-updated': ( |
|
|
|
gobject.SIGNAL_RUN_LAST, |
|
|
|
gobject.SIGNAL_RUN_LAST, |
|
|
|
gobject.TYPE_NONE, |
|
|
|
gobject.TYPE_NONE, |
|
|
|
())} |
|
|
|
())} |
|
|
@ -67,13 +71,14 @@ class UpdateBox(gtk.VBox): |
|
|
|
|
|
|
|
|
|
|
|
add_button = gtk.Button(stock=gtk.STOCK_OK) |
|
|
|
add_button = gtk.Button(stock=gtk.STOCK_OK) |
|
|
|
add_button.set_relief(gtk.RELIEF_NONE); |
|
|
|
add_button.set_relief(gtk.RELIEF_NONE); |
|
|
|
|
|
|
|
add_button.connect('clicked', self.do_update) |
|
|
|
|
|
|
|
|
|
|
|
status_bar = gtk.HBox(False, 0) |
|
|
|
status_bar = gtk.HBox(False, 0) |
|
|
|
status_bar.pack_start(self._update_status, expand=True, fill=False, |
|
|
|
status_bar.pack_start(self._update_status, expand=True, fill=False, |
|
|
|
padding=0) |
|
|
|
padding=0) |
|
|
|
status_bar.pack_start(self._update_info, expand=True, fill=False, |
|
|
|
status_bar.pack_start(self._update_info, expand=True, fill=False, |
|
|
|
padding=0) |
|
|
|
padding=0) |
|
|
|
status_bar.pack_start(add_button, expand=false, fill=False, padding=0) |
|
|
|
status_bar.pack_start(add_button, expand=False, fill=False, padding=0) |
|
|
|
status_bar.pack_start(close_button, expand=False, fill=False, |
|
|
|
status_bar.pack_start(close_button, expand=False, fill=False, |
|
|
|
padding=0) |
|
|
|
padding=0) |
|
|
|
|
|
|
|
|
|
|
@ -155,3 +160,8 @@ class UpdateBox(gtk.VBox): |
|
|
|
self.avatar.set_from_pixbuf(pixbuf) |
|
|
|
self.avatar.set_from_pixbuf(pixbuf) |
|
|
|
# pixbuf can only be set, not get. |
|
|
|
# pixbuf can only be set, not get. |
|
|
|
pixbuf = property(None, _set_pixbuf) |
|
|
|
pixbuf = property(None, _set_pixbuf) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def do_update(self, widget=None): |
|
|
|
|
|
|
|
text = self._text.get_buffer() |
|
|
|
|
|
|
|
self.emit('status-updated') |
|
|
|
|
|
|
|
return |
|
|
|