firstboot: remove unnecessary underline shortkey

The '_' before UI string is for Alt+TheFirstCharacter shortkey
ie. Press Alt+T will focus on the self.totalMem widget.

But the totalMem and systemUsableMem are not configurable, so
this is in fact unnecessary. OTOH, The 'Alt+T' will be used in later
patches, so remove these two here.

Signed-off-by: Dave Young <dyoung@redhat.com>
Reviewed-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Dave Young 2012-08-28 16:22:25 +08:00
parent dc5f48e90a
commit 97aea9a995
1 changed files with 2 additions and 6 deletions

View File

@ -205,9 +205,7 @@ class moduleClass(Module):
# detected total amount of system memory
self.totalMem = gtk.Label(_("%s" % self.availMem))
self.labelTotal = gtk.Label(_("_Total System Memory (MB):"))
self.labelTotal.set_use_underline(True)
self.labelTotal.set_mnemonic_widget(self.totalMem)
self.labelTotal = gtk.Label(_("Total System Memory (MB):"))
self.labelTotal.set_alignment(0.0, 0.5)
self.labelTotal.set_width_chars(32)
@ -226,9 +224,7 @@ class moduleClass(Module):
self.reserveMem = eval(string.strip(self.kdumpMemspin.get_text()))
self.remainingMem = self.availMem - self.reserveMem
self.systemUsableMem = gtk.Label(_("%s" % self.remainingMem))
self.labelSys = gtk.Label(_("_Usable System Memory (MB):"))
self.labelSys.set_use_underline(True)
self.labelSys.set_mnemonic_widget(self.systemUsableMem)
self.labelSys = gtk.Label(_("Usable System Memory (MB):"))
self.labelSys.set_alignment(0.0, 0.5)
self.labelReserved=gtk.Label(_("Memory Currently Reserved (MB):"))