From 67b9706ff2400c0633061911d0cbd9b7f441624b Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 2 Mar 2012 15:48:02 -0800 Subject: ui/crumbs/hig: special case stock info icons in CrumbsMesssageDialog The Hob visual design includes an info icon which should be used consistently throught the GUI. This change detects use of the stock info icon in CrumbsMessageDialog and uses the Hob info icon instead. (Bitbake rev: 37ed1589a19ffc82e8638b5375c99158988b38fc) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hig.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bitbake/lib') diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index b109c0a997..e175a2ab03 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py @@ -74,7 +74,11 @@ class CrumbsMessageDialog(CrumbsDialog): self.vbox.add(first_row) self.icon = gtk.Image() - self.icon.set_from_stock(icon, gtk.ICON_SIZE_DIALOG) + # We have our own Info icon which should be used in preference of the stock icon + if icon == gtk.STOCK_INFO or icon == "gtk-dialog-info": + self.icon.set_from_file(hic.ICON_INFO_DISPLAY_FILE) + else: + self.icon.set_from_stock(icon, gtk.ICON_SIZE_DIALOG) self.icon.set_property("yalign", 0.00) self.icon.show() first_row.add(self.icon) -- cgit v1.2.3-54-g00ecf