summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-02-29 12:39:22 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-15 10:35:15 +0000
commit3fe627c51c22560215ce41c617343211aabd2708 (patch)
tree5a8af489af090c56c6fb99ad712f18282cc305e3 /bitbake/lib/bb
parent8bae18bb358755131f13865abb279ac687a03848 (diff)
downloadpoky-3fe627c51c22560215ce41c617343211aabd2708.tar.gz
Hob: add "Close" button to "BinbDialog"
For certain distributions, like FC16, it doesn't have close button in sub-windows or dialogs. Therefore we need to add an "Close" button to "BinbDialog" to close the dialog. Besides, let BinbDialog inherits the CrumbsDialog instead of gtk.Dialog (Bitbake rev: 5d33c355001bec91f4e4c3860db8d7ac2b449782) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py
index e175a2ab03..28b7eefda4 100644
--- a/bitbake/lib/bb/ui/crumbs/hig.py
+++ b/bitbake/lib/bb/ui/crumbs/hig.py
@@ -94,13 +94,13 @@ class CrumbsMessageDialog(CrumbsDialog):
94# 94#
95# Brought-in-by Dialog 95# Brought-in-by Dialog
96# 96#
97class BinbDialog(gtk.Dialog): 97class BinbDialog(CrumbsDialog):
98 """ 98 """
99 A dialog widget to show "brought in by" info when a recipe/package is clicked. 99 A dialog widget to show "brought in by" info when a recipe/package is clicked.
100 """ 100 """
101 101
102 def __init__(self, title, content, parent=None): 102 def __init__(self, title, content, parent=None):
103 super(BinbDialog, self).__init__(title, parent, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, None) 103 super(BinbDialog, self).__init__(title, parent, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, ("Close", gtk.RESPONSE_CLOSE))
104 104
105 self.set_position(gtk.WIN_POS_MOUSE) 105 self.set_position(gtk.WIN_POS_MOUSE)
106 self.set_resizable(False) 106 self.set_resizable(False)