summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-03-24 00:04:52 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-28 16:49:18 +0100
commit044376692d231f016245844f172f7824f43f3187 (patch)
treedd71dddb7a008b1f74598e29acd08ce205dc84ee /bitbake/lib/bb
parent278fcca5392ae89b0f6772bff7d58455e54932ff (diff)
downloadpoky-044376692d231f016245844f172f7824f43f3187.tar.gz
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 <limingx.l.an@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.py8
1 files changed, 3 insertions, 5 deletions
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
28import subprocess 28import subprocess
29import shlex 29import shlex
30from bb.ui.crumbs.hobcolor import HobColors 30from bb.ui.crumbs.hobcolor import HobColors
31from bb.ui.crumbs.hobwidget import hcc, hic, HobViewTable, HobInfoButton, HobButton, HobAltButton 31from bb.ui.crumbs.hobwidget import hcc, hic, HobViewTable, HobInfoButton, HobButton, HobAltButton, HobIconChecker
32from bb.ui.crumbs.progressbar import HobProgressBar 32from bb.ui.crumbs.progressbar import HobProgressBar
33 33
34""" 34"""
@@ -75,10 +75,8 @@ class CrumbsMessageDialog(CrumbsDialog):
75 75
76 self.icon = gtk.Image() 76 self.icon = gtk.Image()
77 # We have our own Info icon which should be used in preference of the stock icon 77 # We have our own Info icon which should be used in preference of the stock icon
78 if icon == gtk.STOCK_INFO or icon == "gtk-dialog-info": 78 self.icon_chk = HobIconChecker()
79 self.icon.set_from_file(hic.ICON_INFO_DISPLAY_FILE) 79 self.icon.set_from_stock(self.icon_chk.check_stock_icon(icon), gtk.ICON_SIZE_DIALOG)
80 else:
81 self.icon.set_from_stock(icon, gtk.ICON_SIZE_DIALOG)
82 self.icon.set_property("yalign", 0.00) 80 self.icon.set_property("yalign", 0.00)
83 self.icon.show() 81 self.icon.show()
84 first_row.add(self.icon) 82 first_row.add(self.icon)