Skip to contentSkip to conversation

Added distroy signal to information dialogs

PATCH New Andrei Dinu 1 participant 1 message May 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Added distroy signal to information dialogs

Added distroy signal to information dialogs
so that when pressing the close button,
the dialog would close.

[HOB #4568]

---
 bitbake/lib/bb/ui/crumbs/hig/propertydialog.py |    1 +
 1 file changed, 1 insertion(+)
bitbake/lib/bb/ui/crumbs/hig/propertydialog.py +1 -0
index 1e7f5c9..5bd9f95 100644
@@ -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:
Signature · 1 line
1.7.9.5