From 044376692d231f016245844f172f7824f43f3187 Mon Sep 17 00:00:00 2001 From: Liming An Date: Sat, 24 Mar 2012 00:04:52 +0800 Subject: Hob: use hob icon checker to check the gtk icon for make the icon constaintly Because we have hob icon, so need to make some gtk icon to transfer to hob icon. so use hob icon checker to fixed the gtk icon [YOCTO #2108] (From Poky rev: d1d84e5529e0d0752fdcd8d3458ed7595d373115) (Bitbake rev: 65bbc07a3557ac760c6b900880ea6ae2937afde3) Signed-off-by: Liming An Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hig.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'bitbake/lib/bb') diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index a30e7d9205..772f78eac5 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py @@ -28,7 +28,7 @@ import re import subprocess import shlex from bb.ui.crumbs.hobcolor import HobColors -from bb.ui.crumbs.hobwidget import hcc, hic, HobViewTable, HobInfoButton, HobButton, HobAltButton +from bb.ui.crumbs.hobwidget import hcc, hic, HobViewTable, HobInfoButton, HobButton, HobAltButton, HobIconChecker from bb.ui.crumbs.progressbar import HobProgressBar """ @@ -75,10 +75,8 @@ class CrumbsMessageDialog(CrumbsDialog): self.icon = gtk.Image() # 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_chk = HobIconChecker() + self.icon.set_from_stock(self.icon_chk.check_stock_icon(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