From: Andrei Dinu Date: Wed, 29 May 2013 08:42:22 +0000 (+0300) Subject: Added distroy signal to information dialogs X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=265e27857d1d8914486b924d3390bfbe88f4e39b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Andrei Dinu Signed-off-by: Richard Purdie --- diff --git a/lib/bb/ui/crumbs/hig/propertydialog.py b/lib/bb/ui/crumbs/hig/propertydialog.py index 1e7f5c95d5c..5bd9f956b41 100644 --- a/lib/bb/ui/crumbs/hig/propertydialog.py +++ b/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: