/[gli]/branches/overhaul/src/fe/gtk/gtkfe.py
Gentoo

Diff of /branches/overhaul/src/fe/gtk/gtkfe.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1806 Revision 1807
24 SHOW_BUTTON_BACK = 1 24 SHOW_BUTTON_BACK = 1
25 install_profile_xml_file = "" 25 install_profile_xml_file = ""
26 install_window = None 26 install_window = None
27 install_type = "standard" 27 install_type = "standard"
28 cur_screen = None 28 cur_screen = None
29 install_done = False
29 30
30 screens = { 31 screens = {
31 "InstallMode": None, 32 "InstallMode": None,
32 "Partition": None, 33 "Partition": None,
33 "LocalMounts": None, 34 "LocalMounts": None,
200 201
201 def next(self, widget, data=None): 202 def next(self, widget, data=None):
202 self.cur_screen.next() 203 self.cur_screen.next()
203 204
204 def exit_button(self, widget, data=None): 205 def exit_button(self, widget, data=None):
206 if not self.install_done:
205 msgdlg = gtk.MessageDialog(parent=self.window, type=gtk.MESSAGE_QUESTION, buttons=gtk.BUTTONS_YES_NO, message_format="Are you sure you want to exit?") 207 msgdlg = gtk.MessageDialog(parent=self.window, type=gtk.MESSAGE_QUESTION, buttons=gtk.BUTTONS_YES_NO, message_format="Are you sure you want to exit?")
206 resp = msgdlg.run()
207 msgdlg.destroy()
208 if resp == gtk.RESPONSE_YES:
209 msgdlg = gtk.MessageDialog(parent=self.window, type=gtk.MESSAGE_QUESTION, buttons=gtk.BUTTONS_YES_NO, message_format="Do you want the installer to clean up after itself before exiting?")
210 resp = msgdlg.run() 208 resp = msgdlg.run()
211 msgdlg.destroy() 209 msgdlg.destroy()
212 if resp == gtk.RESPONSE_YES: 210 if resp == gtk.RESPONSE_YES:
211 msgdlg = gtk.MessageDialog(parent=self.window, type=gtk.MESSAGE_QUESTION, buttons=gtk.BUTTONS_YES_NO, message_format="Do you want the installer to clean up after itself before exiting?")
212 resp = msgdlg.run()
213 msgdlg.destroy()
214 if resp == gtk.RESPONSE_YES:
213 progress = ProgressDialog(self, ("install_failed_cleanup", ), self.exit_callback) 215 progress = ProgressDialog(self, ("install_failed_cleanup", ), self.exit_callback)
214 progress.run() 216 progress.run()
215 else: 217 else:
216 self.exit() 218 self.exit()
219 else:
220 self.exit()
217 221
218 def exit_callback(self, result): 222 def exit_callback(self, result):
219 self.exit() 223 self.exit()
220 224
221 def load_button(self, widget, data=None): 225 def load_button(self, widget, data=None):

Legend:
Removed from v.1806  
changed lines
  Added in v.1807

  ViewVC Help
Powered by ViewVC 1.1.20