[bitbake-devel] Added distroy signal to information dialogs

Submitted by Andrei Dinu on May 29, 2013, 8:42 a.m.

Details

Message ID 1369816942-19830-1-git-send-email-andrei.adrianx.dinu@intel.com
State New
Headers show

Commit Message

Andrei Dinu May 29, 2013, 8:42 a.m.
Added distroy signal to information dialogs
so that when pressing the close button,
the dialog would close.

[HOB #4568]

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
---
 bitbake/lib/bb/ui/crumbs/hig/propertydialog.py |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/ui/crumbs/hig/propertydialog.py b/bitbake/lib/bb/ui/crumbs/hig/propertydialog.py
index 1e7f5c9..5bd9f95 100644
--- a/bitbake/lib/bb/ui/crumbs/hig/propertydialog.py
+++ b/bitbake/lib/bb/ui/crumbs/hig/propertydialog.py
@@ -87,6 +87,7 @@  class PropertyDialog(CrumbsDialog):
                 self.table.attach(self.info_label, 0,1,1,2, xoptions=gtk.FILL|gtk.EXPAND, yoptions=gtk.FILL,xpadding=40,ypadding=10)
         
                 self.vbox.add(self.table)
+                self.connect('delete-event', lambda w, e: self.destroy() or True) 
 
         def treeViewTooltip( self, widget, e, tooltips, cell, emptyText="" ):
                  try: