diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-05-26 23:47:12 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-05-26 23:47:12 +0200 |
commit | d56725d3d4f83fc636dfbc2af95ae09d9dff6cbb (patch) | |
tree | 5350e0c3ea2a2f1ee42d6560b3a15c3e36d2823d | |
parent | 198cd68c135681f7a393558c4d6d1002d755d480 (diff) | |
download | abrt-d56725d3d4f83fc636dfbc2af95ae09d9dff6cbb.tar.gz abrt-d56725d3d4f83fc636dfbc2af95ae09d9dff6cbb.tar.xz abrt-d56725d3d4f83fc636dfbc2af95ae09d9dff6cbb.zip |
GUI: added close button to the backtrace viewer
-rw-r--r-- | src/Gui/CReporterAssistant.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Gui/CReporterAssistant.py b/src/Gui/CReporterAssistant.py index e036dd73..4c820185 100644 --- a/src/Gui/CReporterAssistant.py +++ b/src/Gui/CReporterAssistant.py @@ -74,15 +74,18 @@ class ReporterAssistant(): viewer.set_default_size(600,500) viewer.set_position(gtk.WIN_POS_CENTER_ON_PARENT) viewer.set_transient_for(self.assistant) - hbox = gtk.HBox() - viewer.add(hbox) + vbox = gtk.VBox() + viewer.add(vbox) bt_tev = gtk.TextView() backtrace_scroll_w = gtk.ScrolledWindow() backtrace_scroll_w.add(bt_tev) backtrace_scroll_w.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) bt_tev.set_buffer(self.backtrace_buff) - hbox.pack_start(backtrace_scroll_w) + vbox.pack_start(backtrace_scroll_w) + b_close = gtk.Button(stock=gtk.STOCK_CLOSE) + b_close.connect("clicked",lambda *w: viewer.destroy()) + vbox.pack_start(b_close, False) viewer.show_all() def on_report_done_cb(self, daemon, result): |