summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-04-04 20:25:20 +0000
committerJeremy Katz <katzj@redhat.com>2007-04-04 20:25:20 +0000
commit0c02e100c8885845370facfea2323a786716ea1f (patch)
treebb0f955725d4a722eebebc62cb366e74f0937516 /iw
parent49a55e465ad119dd83ecf299eef406927d2b5437 (diff)
downloadanaconda-0c02e100c8885845370facfea2323a786716ea1f.tar.gz
anaconda-0c02e100c8885845370facfea2323a786716ea1f.tar.xz
anaconda-0c02e100c8885845370facfea2323a786716ea1f.zip
2007-04-04 Jeremy Katz <katzj@redhat.com>
* iw/congrats_gui.py (CongratulationWindow.__init__): Add support for close button to be used with the live install (#225168) * ui/anaconda.glade: Likewise.
Diffstat (limited to 'iw')
-rw-r--r--iw/congrats_gui.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/iw/congrats_gui.py b/iw/congrats_gui.py
index 6f962f5c6..82741cfc2 100644
--- a/iw/congrats_gui.py
+++ b/iw/congrats_gui.py
@@ -18,6 +18,7 @@ from iw_gui import *
from rhpl.translate import _, N_
from constants import *
import iutil
+import os
class CongratulationWindow (InstallWindow):
@@ -34,8 +35,12 @@ class CongratulationWindow (InstallWindow):
# this mucks around a bit, but it's the weird case and it's
# better than adding a lot of complication to the normal
ics.cw.mainxml.get_widget("nextButton").hide()
- ics.cw.mainxml.get_widget("rebootButton").show()
- ics.cw.mainxml.get_widget("rebootButton").grab_focus()
+ if os.path.exists("/dev/live-osimg"):
+ ics.cw.mainxml.get_widget("closeButton").show()
+ ics.cw.mainxml.get_widget("closeButton").grab_focus()
+ else:
+ ics.cw.mainxml.get_widget("rebootButton").show()
+ ics.cw.mainxml.get_widget("rebootButton").grab_focus()
def getNext(self):
# XXX - copy any screenshots over
@@ -54,12 +59,13 @@ class CongratulationWindow (InstallWindow):
hbox.pack_start (a, False, False, 36)
bootstr = ""
- if rhpl.getArch() == "s390":
+ if rhpl.getArch() == "s390" or os.path.exists("/dev/live-osimg"):
floppystr = ""
else:
floppystr = _("Press the \"Reboot\" button to reboot your system."
"\n\n")
+
txt = _("Congratulations, the installation is complete.\n\n"
"%s%s") %(floppystr, bootstr)
label = gui.WrappingLabel(txt)