summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2012-10-05 14:09:30 +0200
committerMartin Sivak <msivak@redhat.com>2012-10-05 14:09:30 +0200
commit799e577c0adf2dc02970594b73969b02daf04f72 (patch)
tree7fd3242767f33a212ae6df76d9c8ba79c4b25186
parent27cadecfb35647dce53d0c13571d53028611433c (diff)
downloadfirstboot2-799e577c0adf2dc02970594b73969b02daf04f72.tar.gz
firstboot2-799e577c0adf2dc02970594b73969b02daf04f72.tar.xz
firstboot2-799e577c0adf2dc02970594b73969b02daf04f72.zip
customized QuitDialog
-rw-r--r--firstboot/gui/gui.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/firstboot/gui/gui.py b/firstboot/gui/gui.py
index 784cb40..143f91c 100644
--- a/firstboot/gui/gui.py
+++ b/firstboot/gui/gui.py
@@ -1,4 +1,4 @@
-from pyanaconda.ui.gui import GUIObject, GraphicalUserInterface
+from pyanaconda.ui.gui import QuitDialog, GUIObject, GraphicalUserInterface
#from .product import productName, productVersion
from .hubs import FirstbootHub
from pyanaconda.ui.gui.spokes import StandaloneSpoke
@@ -10,16 +10,20 @@ productName = "Fedora"
productVersion = "rawhide"
isFinal = False
+class FirstbootQuitDialog(QuitDialog):
+ MESSAGE = "Are you sure you want to quit the configuration process?\nYou might end up with unusable system if you do."
+
class FirstbootGraphicalUserInterface(GraphicalUserInterface):
- """This is the standard GTK+ interface we try to steer everything to using.
- It is suitable for use both directly and via VNC.
+ """This is the main Gtk based firstboot interface. It inherits from
+ anaconda to make the look & feel as similar as possible.
"""
TITLE = "%(productName)s %(productVersion)s SETUP"
def __init__(self, storage, payload, instclass):
GraphicalUserInterface.__init__(self, storage, payload, instclass,
- productName, productVersion, isFinal)
+ productName, productVersion, isFinal,
+ quitDialog = FirstbootQuitDialog)
def _list_hubs(self):
return [FirstbootHub]