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:
parent
dc1efd8158
commit
2c10ae2b21
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
static char *
|
static char *
|
||||||
get_progress_msg_2(struct progress *progress, struct terminal *term,
|
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;
|
struct string msg;
|
||||||
int newlines = separator[strlen(separator) - 1] == '\n';
|
int newlines = separator[strlen(separator) - 1] == '\n';
|
||||||
@ -92,14 +92,14 @@ get_progress_msg_2(struct progress *progress, struct terminal *term,
|
|||||||
|
|
||||||
char *
|
char *
|
||||||
get_upload_progress_msg(struct progress *progress, struct terminal *term,
|
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));
|
return get_progress_msg_2(progress, term, wide, full, separator, _("Sent", term));
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
get_progress_msg(struct progress *progress, struct terminal *term,
|
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));
|
return get_progress_msg_2(progress, term, wide, full, separator, _("Received", term));
|
||||||
}
|
}
|
||||||
|
@ -10,12 +10,12 @@ struct terminal;
|
|||||||
|
|
||||||
char *
|
char *
|
||||||
get_progress_msg(struct progress *progress, struct terminal *term,
|
get_progress_msg(struct progress *progress, struct terminal *term,
|
||||||
int wide, int full, char *separator);
|
int wide, int full, const char *separator);
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
get_upload_progress_msg(struct progress *progress, struct terminal *term,
|
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
|
/* 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. */
|
* @text is NULL. If @meter_color is NULL dialog.meter color is used. */
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
char *
|
char *
|
||||||
get_download_msg(struct download *download, struct terminal *term,
|
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)) {
|
if (!download_is_progressing(download)) {
|
||||||
/* DBG("%d -> %s", download->state, _(get_err_msg(download->state), term)); */
|
/* DBG("%d -> %s", download->state, _(get_err_msg(download->state), term)); */
|
||||||
|
@ -15,7 +15,7 @@ void update_status(void);
|
|||||||
|
|
||||||
char *
|
char *
|
||||||
get_download_msg(struct download *download, struct terminal *term,
|
get_download_msg(struct download *download, struct terminal *term,
|
||||||
int wide, int full, char *separator);
|
int wide, int full, const char *separator);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -275,7 +275,7 @@ dlg_show_bittorrent_info(struct dialog_data *dlg_data, struct widget_data *widge
|
|||||||
* should be easily accessible. */
|
* should be easily accessible. */
|
||||||
char *
|
char *
|
||||||
get_bittorrent_message(struct download *download, struct terminal *term,
|
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. */
|
/* Cooresponds to the connection mode enum. */
|
||||||
static char *modes_text[] = {
|
static char *modes_text[] = {
|
||||||
|
@ -17,7 +17,7 @@ struct type_query;
|
|||||||
|
|
||||||
char *
|
char *
|
||||||
get_bittorrent_message(struct download *download, struct terminal *term,
|
get_bittorrent_message(struct download *download, struct terminal *term,
|
||||||
int wide, int full, char *separator);
|
int wide, int full, const char *separator);
|
||||||
|
|
||||||
void
|
void
|
||||||
draw_bittorrent_piece_progress(struct download *download, struct terminal *term,
|
draw_bittorrent_piece_progress(struct download *download, struct terminal *term,
|
||||||
|
Loading…
Reference in New Issue
Block a user