From patchwork Sat Mar 3 00:39:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 6/6] ui/crumbs/hig: special case stock info icons in CrumbsMesssageDialog Date: Sat, 03 Mar 2012 00:39:22 -0000 From: Joshua Lock X-Patchwork-Id: 22601 Message-Id: <0aa653ca441811e220bbf70de4eb32781e41c9c5.1330734444.git.josh@linux.intel.com> To: bitbake-devel@lists.openembedded.org 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. Signed-off-by: Joshua Lock --- lib/bb/ui/crumbs/hig.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/bb/ui/crumbs/hig.py b/lib/bb/ui/crumbs/hig.py index b109c0a..e175a2a 100644 --- a/lib/bb/ui/crumbs/hig.py +++ b/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)