[bitbake-devel] [PATCH] Added distroy signal to information dialogs

Andrei Dinu andrei.adrianx.dinu at intel.com
Wed May 29 08:42:22 UTC 2013


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 at intel.com>
---
 bitbake/lib/bb/ui/crumbs/hig/propertydialog.py |    1 +
 1 file changed, 1 insertion(+)

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:
-- 
1.7.9.5




More information about the bitbake-devel mailing list