From: Guenter B. <gu...@us...> - 2002-11-03 18:20:30
|
Update of /cvsroot/xine/gnome-xine/src In directory usw-pr-cvs1:/tmp/cvs-serv1281 Modified Files: wizards.c Log Message: turn into c-code Index: wizards.c =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/wizards.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- wizards.c 2 Nov 2002 03:10:33 -0000 1.4 +++ wizards.c 3 Nov 2002 18:20:26 -0000 1.5 @@ -52,37 +52,39 @@ gnome_dialog_set_default (GNOME_DIALOG(dlg), 0); if (!gnome_dialog_run (GNOME_DIALOG (dlg))) { + xine_health_check_t* results; printf ("wizards: running xine health check...\n"); - // If input.vcd_device is empty, we will set it to the default "/dev/cdrom" + /* If input.vcd_device is empty, we will set it to the default "/dev/cdrom" */ hc.cdrom_dev = gtk_xine_config_register_string(GTK_XINE(gtx), "input.vcd_device", "/dev/cdrom", "device used for cdrom drive", NULL, 0, NULL, NULL); - // If input.dvd_device is empty, we will set it to the default "/dev/dvd" + /* If input.dvd_device is empty, we will set it to the default "/dev/dvd" */ hc.dvd_dev = gtk_xine_config_register_string(GTK_XINE(gtx), "input.vcd_device", "/dev/dvd", "device used for cdrom drive", NULL, 0, NULL, NULL); - // Run tests - xine_health_check_t* results = xine_health_check (&hc); + /* Run tests */ + results = xine_health_check (&hc); if (results->status == XINE_HEALTH_CHECK_FAIL) { char* msg = malloc(sizeof(char)*(12-2) + strlen(results->msg) + 1); sprintf(msg, "ERROR: %s.\n", results->msg); dlg = gnome_message_box_new(msg, GNOME_MESSAGE_BOX_ERROR, GNOME_STOCK_BUTTON_OK, NULL); } else if (results->status == XINE_HEALTH_CHECK_UNSUPPORTED) { - dlg = gnome_message_box_new("Xine Health Check unsupported on this OS.\n", GNOME_MESSAGE_BOX_ERROR, GNOME_STOCK_BUTTON_OK, NULL); + dlg = gnome_message_box_new("Xine Health Check unsupported on this OS.\n", + GNOME_MESSAGE_BOX_ERROR, GNOME_STOCK_BUTTON_OK, NULL); } else { dlg = gnome_message_box_new ("Xine Device Health Check\n\n" - "The gnome-xine health check has been executed successfully.\n\n", - GNOME_MESSAGE_BOX_INFO, GNOME_STOCK_BUTTON_OK, NULL); + "The gnome-xine health check has been executed successfully.\n\n", + GNOME_MESSAGE_BOX_INFO, GNOME_STOCK_BUTTON_OK, NULL); } gnome_dialog_run (GNOME_DIALOG (dlg)); |