summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-03-02 15:48:02 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-12 02:26:13 +0000
commit67b9706ff2400c0633061911d0cbd9b7f441624b (patch)
tree11a797dd06bcc5e861ad7ff65612c9e46271393a /bitbake
parentfce8d37144651018f2b69b952fb6d0ea9103276a (diff)
downloadpoky-67b9706ff2400c0633061911d0cbd9b7f441624b.tar.gz
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 <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hig.py6
1 files changed, 5 insertions, 1 deletions
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):
74 self.vbox.add(first_row) 74 self.vbox.add(first_row)
75 75
76 self.icon = gtk.Image() 76 self.icon = gtk.Image()
77 self.icon.set_from_stock(icon, gtk.ICON_SIZE_DIALOG) 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":
79 self.icon.set_from_file(hic.ICON_INFO_DISPLAY_FILE)
80 else:
81 self.icon.set_from_stock(icon, gtk.ICON_SIZE_DIALOG)
78 self.icon.set_property("yalign", 0.00) 82 self.icon.set_property("yalign", 0.00)
79 self.icon.show() 83 self.icon.show()
80 first_row.add(self.icon) 84 first_row.add(self.icon)