38 |
#define CDRECORD_INAPPROPRIATE "Inappropriate audio coding" |
#define CDRECORD_INAPPROPRIATE "Inappropriate audio coding" |
39 |
#define CDRECORD_INPUTOUTPUT_ERROR "Input/output error." |
#define CDRECORD_INPUTOUTPUT_ERROR "Input/output error." |
40 |
#define CDRECORD_FIXATING "Fixating..." |
#define CDRECORD_FIXATING "Fixating..." |
41 |
|
#define CDRECORD_BLANKING "Blanking " |
42 |
#define CDRECORD_BAD_RECORDER "Sorry, no CD/DVD-Recorder or unsupported CD/DVD-Recorder found" |
#define CDRECORD_BAD_RECORDER "Sorry, no CD/DVD-Recorder or unsupported CD/DVD-Recorder found" |
43 |
|
|
44 |
/* support du materiel */ |
/* support du materiel */ |
59 |
/* effacer un cdrw ou cloturer un cdr */ |
/* effacer un cdrw ou cloturer un cdr */ |
60 |
#define CDRECORD_BLANKING_TIME "Blanking time:" |
#define CDRECORD_BLANKING_TIME "Blanking time:" |
61 |
#define CDRECORD_CANNOT_BLANK "Cannot blank disk, aborting" |
#define CDRECORD_CANNOT_BLANK "Cannot blank disk, aborting" |
62 |
|
#define CDRECORD_CANNOT_FORMAT "cannot format medium" |
63 |
#define CDRECORD_INCOMPATIBLE_MEDIUM "cannot format medium - incompatible medium" |
#define CDRECORD_INCOMPATIBLE_MEDIUM "cannot format medium - incompatible medium" |
64 |
#define CDRECORD_FIXATING_TIME "Fixating time:" |
#define CDRECORD_FIXATING_TIME "Fixating time:" |
65 |
|
|
629 |
} else if (strstr(Lbuffer, CDRECORD_FIXATING)) { |
} else if (strstr(Lbuffer, CDRECORD_FIXATING)) { |
630 |
/* cloture du cd */ |
/* cloture du cd */ |
631 |
gtk_label_set_text(Ltitle, _("Fixating...")); |
gtk_label_set_text(Ltitle, _("Fixating...")); |
632 |
|
} else if (strstr(Lbuffer, CDRECORD_BLANKING)) { |
633 |
|
/* blanking disk */ |
634 |
|
gtk_label_set_text(Ltitle, _("Blanking...")); |
635 |
} else if ((f=strstr(Lbuffer, CDRECORD_STATUS))) { |
} else if ((f=strstr(Lbuffer, CDRECORD_STATUS))) { |
636 |
gboolean *Lstatus = (gboolean *) g_hash_table_lookup(Lhash, "operationstatus"); |
gboolean *Lstatus = (gboolean *) g_hash_table_lookup(Lhash, "operationstatus"); |
637 |
/* bug 11803 |
/* bug 11803 |
649 |
g_set_error(Lerreur, GRAVEMAN_ERROR, _ERR_NO_CD, _("Error writing CD !")); |
g_set_error(Lerreur, GRAVEMAN_ERROR, _ERR_NO_CD, _("Error writing CD !")); |
650 |
(*Lcont) = 0; |
(*Lcont) = 0; |
651 |
return FALSE; |
return FALSE; |
652 |
|
} else if (strstr(Lbuffer, CDRECORD_CANNOT_BLANK) || (strstr(Lbuffer, CDRECORD_CANNOT_FORMAT))) { |
653 |
|
g_set_error(Lerreur, GRAVEMAN_ERROR, _ERR_CANNOT_BLANK, _("Cannot blank disk, aborting.")); |
654 |
|
(*Lcont) = 0; |
655 |
|
return FALSE; |
656 |
} else if (strstr(Lbuffer, CDRECORD_ERRORDISK)) { |
} else if (strstr(Lbuffer, CDRECORD_ERRORDISK)) { |
657 |
/* erreur pas de cd vierge */ |
/* erreur pas de cd vierge */ |
658 |
g_set_error(Lerreur, GRAVEMAN_ERROR, _ERR_NO_CD, _("Error, a CD-R/CD-RW is required in the cd recorder !")); |
g_set_error(Lerreur, GRAVEMAN_ERROR, _ERR_NO_CD, _("Error, a CD-R/CD-RW is required in the cd recorder !")); |
1048 |
} |
} |
1049 |
|
|
1050 |
|
|
1051 |
|
/* ejecter un CD */ |
1052 |
|
void eject_cd(gchar *Adev, GError **Aerror) |
1053 |
|
{ |
1054 |
|
gchar *Lcommandline = g_strdup_printf("%s -eject dev=%s", conf_get_string("cdrecord"), Adev); |
1055 |
|
_DEB("EJECT %s\n", Adev); |
1056 |
|
|
1057 |
|
g_spawn_command_line_sync(Lcommandline, NULL, NULL, NULL, Aerror); |
1058 |
|
|
1059 |
|
g_free(Lcommandline); |
1060 |
|
} |
1061 |
|
|
1062 |
/* |
/* |
1063 |
* vim:et:ts=8:sts=2:sw=2 |
* vim:et:ts=8:sts=2:sw=2 |