diff options
| -rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig.py | 8 |
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 | |||
| 28 | import subprocess | 28 | import subprocess |
| 29 | import shlex | 29 | import shlex |
| 30 | from bb.ui.crumbs.hobcolor import HobColors | 30 | from bb.ui.crumbs.hobcolor import HobColors |
| 31 | from bb.ui.crumbs.hobwidget import hcc, hic, HobViewTable, HobInfoButton, HobButton, HobAltButton | 31 | from bb.ui.crumbs.hobwidget import hcc, hic, HobViewTable, HobInfoButton, HobButton, HobAltButton, HobIconChecker |
| 32 | from bb.ui.crumbs.progressbar import HobProgressBar | 32 | from 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) |
