1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[dialogs] const separator in progress

This commit is contained in:
Witold Filipczyk 2022-02-17 21:14:36 +01:00
parent dc1efd8158
commit 2c10ae2b21
6 changed files with 9 additions and 9 deletions

View File

@ -18,7 +18,7 @@
static char *
get_progress_msg_2(struct progress *progress, struct terminal *term,
int wide, int full, char *separator, char *type)
int wide, int full, const char *separator, char *type)
{
struct string msg;
int newlines = separator[strlen(separator) - 1] == '\n';
@ -92,14 +92,14 @@ get_progress_msg_2(struct progress *progress, struct terminal *term,
char *
get_upload_progress_msg(struct progress *progress, struct terminal *term,
int wide, int full, char *separator)
int wide, int full, const char *separator)
{
return get_progress_msg_2(progress, term, wide, full, separator, _("Sent", term));
}
char *
get_progress_msg(struct progress *progress, struct terminal *term,
int wide, int full, char *separator)
int wide, int full, const char *separator)
{
return get_progress_msg_2(progress, term, wide, full, separator, _("Received", term));
}

View File

@ -10,12 +10,12 @@ struct terminal;
char *
get_progress_msg(struct progress *progress, struct terminal *term,
int wide, int full, char *separator);
int wide, int full, const char *separator);
char *
get_upload_progress_msg(struct progress *progress, struct terminal *term,
int wide, int full, char *separator);
int wide, int full, const char *separator);
/* Draws a progress bar meter or progress coloured text depending on whether
* @text is NULL. If @meter_color is NULL dialog.meter color is used. */

View File

@ -43,7 +43,7 @@
char *
get_download_msg(struct download *download, struct terminal *term,
int wide, int full, char *separator)
int wide, int full, const char *separator)
{
if (!download_is_progressing(download)) {
/* DBG("%d -> %s", download->state, _(get_err_msg(download->state), term)); */

View File

@ -15,7 +15,7 @@ void update_status(void);
char *
get_download_msg(struct download *download, struct terminal *term,
int wide, int full, char *separator);
int wide, int full, const char *separator);
#ifdef __cplusplus
}

View File

@ -275,7 +275,7 @@ dlg_show_bittorrent_info(struct dialog_data *dlg_data, struct widget_data *widge
* should be easily accessible. */
char *
get_bittorrent_message(struct download *download, struct terminal *term,
int wide, int full, char *separator)
int wide, int full, const char *separator)
{
/* Cooresponds to the connection mode enum. */
static char *modes_text[] = {

View File

@ -17,7 +17,7 @@ struct type_query;
char *
get_bittorrent_message(struct download *download, struct terminal *term,
int wide, int full, char *separator);
int wide, int full, const char *separator);
void
draw_bittorrent_piece_progress(struct download *download, struct terminal *term,