27
27
#endif
28
28
29
29
#include <sys/wait.h>
30
- #include <gnome.h>
31
30
#include <libbe.h>
32
31
33
32
#include "installation-profile.h"
@@ -175,12 +174,6 @@ prompt_quit()
175
174
_ ("Do you want to quit this installation ?" ),
176
175
NULL );
177
176
break ;
178
- case INSTALLATION_TYPE_INPLACE_UPGRADE :
179
- ret_val = gui_install_prompt_dialog (TRUE, FALSE, FALSE,
180
- GTK_MESSAGE_WARNING ,
181
- _ ("Do you want to quit this installation ?" ),
182
- NULL );
183
- break ;
184
177
}
185
178
return (ret_val );
186
179
}
@@ -307,14 +300,6 @@ on_nextbutton_clicked(GtkButton *button,
307
300
MainWindow .InstallationDiskWindow .diskselectiontoplevel );
308
301
installationdisk_screen_set_default_focus ( FALSE );
309
302
break ;
310
- case INSTALLATION_TYPE_INPLACE_UPGRADE :
311
- if (MainWindow .MileStoneComplete [OM_UPGRADE_TARGET_DISCOVERY ]
312
- == FALSE)
313
- gtk_widget_set_sensitive (MainWindow .nextbutton , FALSE);
314
- gtk_widget_hide (
315
- MainWindow .InstallationDiskWindow .diskselectiontoplevel );
316
- show_upgrade_screen (TRUE);
317
- break ;
318
303
}
319
304
320
305
gtk_widget_set_sensitive (MainWindow .backbutton , TRUE);
@@ -421,14 +406,6 @@ on_nextbutton_clicked(GtkButton *button,
421
406
gtk_label_set_label (GTK_LABEL (MainWindow .userlabel ),
422
407
MainWindow .InactiveStageTitles [USER_SCREEN ]);
423
408
break ;
424
- case INSTALLATION_TYPE_INPLACE_UPGRADE :
425
- show_upgrade_screen (FALSE);
426
- gtk_widget_show (MainWindow .upgradebutton );
427
- gtk_widget_set_sensitive (MainWindow .upgradebutton , TRUE);
428
- gtk_widget_grab_default (MainWindow .upgradebutton );
429
- gtk_label_set_label (GTK_LABEL (MainWindow .disklabel ),
430
- MainWindow .InactiveStageTitles [DISK_SCREEN ]);
431
- break ;
432
409
}
433
410
confirmation_screen_set_contents ();
434
411
gtk_widget_show (
@@ -468,10 +445,6 @@ on_nextbutton_clicked(GtkButton *button,
468
445
case INSTALLATION_TYPE_INITIAL_INSTALL :
469
446
gtk_widget_set_sensitive (MainWindow .installbutton , FALSE);
470
447
break ;
471
-
472
- case INSTALLATION_TYPE_INPLACE_UPGRADE :
473
- gtk_widget_set_sensitive (MainWindow .upgradebutton , FALSE);
474
- break ;
475
448
}
476
449
477
450
gtk_widget_show (
@@ -511,9 +484,6 @@ on_nextbutton_clicked(GtkButton *button,
511
484
case INSTALLATION_TYPE_INITIAL_INSTALL :
512
485
gtk_widget_set_sensitive (MainWindow .installbutton , FALSE);
513
486
break ;
514
- case INSTALLATION_TYPE_INPLACE_UPGRADE :
515
- gtk_widget_set_sensitive (MainWindow .upgradebutton , FALSE);
516
- break ;
517
487
}
518
488
gtk_widget_grab_default (MainWindow .quitbutton );
519
489
@@ -539,9 +509,6 @@ on_nextbutton_clicked(GtkButton *button,
539
509
case INSTALLATION_TYPE_INITIAL_INSTALL :
540
510
gtk_widget_hide (MainWindow .installbutton );
541
511
break ;
542
- case INSTALLATION_TYPE_INPLACE_UPGRADE :
543
- gtk_widget_hide (MainWindow .upgradebutton );
544
- break ;
545
512
}
546
513
547
514
finish_screen_set_contents ();
@@ -593,11 +560,6 @@ on_backbutton_clicked(GtkButton *button,
593
560
gtk_widget_hide (MainWindow .installbutton );
594
561
InstallCurrScreen -- ;
595
562
break ;
596
- case INSTALLATION_TYPE_INPLACE_UPGRADE :
597
- /* Short circuit back to the DISK_SCREEN */
598
- gtk_widget_hide (MainWindow .upgradebutton );
599
- InstallCurrScreen = DISK_SCREEN ;
600
- break ;
601
563
}
602
564
gtk_widget_show (MainWindow .nextbutton );
603
565
gtk_widget_grab_default (MainWindow .nextbutton );
@@ -635,9 +597,6 @@ on_backbutton_clicked(GtkButton *button,
635
597
gtk_widget_hide (
636
598
MainWindow .InstallationDiskWindow .diskselectiontoplevel );
637
599
break ;
638
- case INSTALLATION_TYPE_INPLACE_UPGRADE :
639
- show_upgrade_screen (FALSE);
640
- break ;
641
600
}
642
601
gtk_label_set_label (GTK_LABEL (MainWindow .disklabel ),
643
602
MainWindow .InactiveStageTitles [DISK_SCREEN ]);
@@ -665,19 +624,6 @@ on_backbutton_clicked(GtkButton *button,
665
624
MainWindow .InstallationDiskWindow .diskselectiontoplevel );
666
625
installationdisk_screen_set_default_focus ( TRUE );
667
626
break ;
668
- case INSTALLATION_TYPE_INPLACE_UPGRADE :
669
- gtk_widget_hide (
670
- MainWindow .ConfirmationWindow .confirmationtoplevel );
671
- gtk_widget_hide (MainWindow .upgradebutton );
672
- title = g_strdup_printf (InactiveStageTitleMarkup ,
673
- gtk_label_get_text (GTK_LABEL (
674
- MainWindow .installationlabel )));
675
- gtk_label_set_label (GTK_LABEL (MainWindow .installationlabel ),
676
- title );
677
- gtk_widget_show (MainWindow .nextbutton );
678
- show_upgrade_screen (TRUE);
679
- g_free (title );
680
- break ;
681
627
}
682
628
gtk_widget_set_sensitive (MainWindow .backbutton , TRUE);
683
629
gtk_widget_set_sensitive (MainWindow .nextbutton , TRUE);
@@ -930,9 +876,6 @@ on_licensecheckbutton_toggled(GtkToggleButton *togglebutton,
930
876
case INSTALLATION_TYPE_INITIAL_INSTALL :
931
877
button = MainWindow .installbutton ;
932
878
break ;
933
- case INSTALLATION_TYPE_INPLACE_UPGRADE :
934
- button = MainWindow .upgradebutton ;
935
- break ;
936
879
}
937
880
938
881
gtk_widget_set_sensitive (button ,
0 commit comments