From dcb7fbfe84e2f18b394cefe854a216daaf221232 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 18 May 2010 09:19:16 -0300 Subject: [PATCH] added an "add" button to post messages directly from the updatebox --- mitterlib/ui/helpers/gtk_updatebox.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mitterlib/ui/helpers/gtk_updatebox.py b/mitterlib/ui/helpers/gtk_updatebox.py index 3aca61a..c8564eb 100644 --- a/mitterlib/ui/helpers/gtk_updatebox.py +++ b/mitterlib/ui/helpers/gtk_updatebox.py @@ -65,11 +65,15 @@ class UpdateBox(gtk.VBox): close_button.set_relief(gtk.RELIEF_NONE) close_button.connect('clicked', self.hide) + add_button = gtk.Button(stock=gtk.STOCK_OK) + add_button.set_relief(gtk.RELIEF_NONE); + status_bar = gtk.HBox(False, 0) status_bar.pack_start(self._update_status, expand=True, fill=False, padding=0) status_bar.pack_start(self._update_info, expand=True, 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, padding=0)