bitbake: Added distroy signal to information dialogs
authorAndrei Dinu <andrei.adrianx.dinu@intel.com>
Wed, 29 May 2013 08:42:22 +0000 (11:42 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 31 May 2013 07:25:40 +0000 (08:25 +0100)
Added distroy signal to information dialogs
so that when pressing the close button,
the dialog would close.

[HOB #4568]

(Bitbake rev: 265e27857d1d8914486b924d3390bfbe88f4e39b)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/hig/propertydialog.py

index 1e7f5c9..5bd9f95 100644 (file)
@@ -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: