From patchwork Sat Apr 14 11:23:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel,1/4] Hob: A minor fix on tooltip Date: Sat, 14 Apr 2012 11:23:52 -0000 From: Dongxiao Xu X-Patchwork-Id: 25823 Message-Id: To: bitbake-devel@lists.openembedded.org From: Richard Purdie Signed-off-by: Richard Purdie Signed-off-by: Dongxiao Xu --- lib/bb/ui/crumbs/hig.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/lib/bb/ui/crumbs/hig.py b/lib/bb/ui/crumbs/hig.py index 5cc8a59..322efc6 100644 --- a/lib/bb/ui/crumbs/hig.py +++ b/lib/bb/ui/crumbs/hig.py @@ -392,7 +392,10 @@ class AdvancedSettingDialog (CrumbsDialog): j = 1 for image_type in self.image_types: self.image_types_checkbuttons[image_type] = gtk.CheckButton(image_type) - self.image_types_checkbuttons[image_type].set_tooltip_text("Build an %s image" % image_type) + article = "" + if image_type.startswith(("a", "e", "i", "o", "u")): + article = "n" + self.image_types_checkbuttons[image_type].set_tooltip_text("Build a%s %s image" % (article, image_type)) table.attach(self.image_types_checkbuttons[image_type], j, j + 4, i, i + 1) if image_type in self.configuration.image_fstypes.split(): self.image_types_checkbuttons[image_type].set_active(True)