diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-10-23 19:43:45 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-10-23 19:45:06 +0200 |
commit | c6161d0e4a73665a646688859e1a77cdad0998f8 (patch) | |
tree | e6a59b97481d1e095faad9e49954d45b18dc7ac5 /src/plugins/xfer | |
parent | ecc7edda9e1acc43fcf6effc72120e54bda4a655 (diff) | |
download | weechat-c6161d0e4a73665a646688859e1a77cdad0998f8.zip |
plugins: sort options added in configuration sections
Diffstat (limited to 'src/plugins/xfer')
-rw-r--r-- | src/plugins/xfer/xfer-config.c | 46 | ||||
-rw-r--r-- | src/plugins/xfer/xfer-config.h | 2 |
2 files changed, 24 insertions, 24 deletions
diff --git a/src/plugins/xfer/xfer-config.c b/src/plugins/xfer/xfer-config.c index f36fb2d46..a776f9638 100644 --- a/src/plugins/xfer/xfer-config.c +++ b/src/plugins/xfer/xfer-config.c @@ -50,8 +50,8 @@ struct t_config_option *xfer_config_network_fast_send; struct t_config_option *xfer_config_network_own_ip; struct t_config_option *xfer_config_network_port_range; struct t_config_option *xfer_config_network_send_ack; -struct t_config_option *xfer_config_network_speed_limit_send; struct t_config_option *xfer_config_network_speed_limit_recv; +struct t_config_option *xfer_config_network_speed_limit_send; struct t_config_option *xfer_config_network_timeout; /* xfer config, file section */ @@ -170,19 +170,11 @@ xfer_config_init () return 0; } - xfer_config_color_status[XFER_STATUS_WAITING] = weechat_config_new_option ( - xfer_config_file, ptr_section, - "status_waiting", "color", - N_("text color for \"waiting\" status"), - NULL, 0, 0, "lightcyan", NULL, 0, - NULL, NULL, NULL, - &xfer_config_refresh_cb, NULL, NULL, - NULL, NULL, NULL); - xfer_config_color_status[XFER_STATUS_CONNECTING] = weechat_config_new_option ( + xfer_config_color_status[XFER_STATUS_ABORTED] = weechat_config_new_option ( xfer_config_file, ptr_section, - "status_connecting", "color", - N_("text color for \"connecting\" status"), - NULL, 0, 0, "yellow", NULL, 0, + "status_aborted", "color", + N_("text color for \"aborted\" status"), + NULL, 0, 0, "lightred", NULL, 0, NULL, NULL, NULL, &xfer_config_refresh_cb, NULL, NULL, NULL, NULL, NULL); @@ -194,6 +186,14 @@ xfer_config_init () NULL, NULL, NULL, &xfer_config_refresh_cb, NULL, NULL, NULL, NULL, NULL); + xfer_config_color_status[XFER_STATUS_CONNECTING] = weechat_config_new_option ( + xfer_config_file, ptr_section, + "status_connecting", "color", + N_("text color for \"connecting\" status"), + NULL, 0, 0, "yellow", NULL, 0, + NULL, NULL, NULL, + &xfer_config_refresh_cb, NULL, NULL, + NULL, NULL, NULL); xfer_config_color_status[XFER_STATUS_DONE] = weechat_config_new_option ( xfer_config_file, ptr_section, "status_done", "color", @@ -210,11 +210,11 @@ xfer_config_init () NULL, NULL, NULL, &xfer_config_refresh_cb, NULL, NULL, NULL, NULL, NULL); - xfer_config_color_status[XFER_STATUS_ABORTED] = weechat_config_new_option ( + xfer_config_color_status[XFER_STATUS_WAITING] = weechat_config_new_option ( xfer_config_file, ptr_section, - "status_aborted", "color", - N_("text color for \"aborted\" status"), - NULL, 0, 0, "lightred", NULL, 0, + "status_waiting", "color", + N_("text color for \"waiting\" status"), + NULL, 0, 0, "lightcyan", NULL, 0, NULL, NULL, NULL, &xfer_config_refresh_cb, NULL, NULL, NULL, NULL, NULL); @@ -296,17 +296,17 @@ xfer_config_init () "the acks are not sent immediately to the sender"), NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); - xfer_config_network_speed_limit_send = weechat_config_new_option ( + xfer_config_network_speed_limit_recv = weechat_config_new_option ( xfer_config_file, ptr_section, - "speed_limit_send", "integer", - N_("speed limit for sending files, in kilo-bytes by second (0 means " + "speed_limit_recv", "integer", + N_("speed limit for receiving files, in kilo-bytes by second (0 means " "no limit)"), NULL, 0, INT_MAX, "0", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); - xfer_config_network_speed_limit_recv = weechat_config_new_option ( + xfer_config_network_speed_limit_send = weechat_config_new_option ( xfer_config_file, ptr_section, - "speed_limit_recv", "integer", - N_("speed limit for receiving files, in kilo-bytes by second (0 means " + "speed_limit_send", "integer", + N_("speed limit for sending files, in kilo-bytes by second (0 means " "no limit)"), NULL, 0, INT_MAX, "0", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); diff --git a/src/plugins/xfer/xfer-config.h b/src/plugins/xfer/xfer-config.h index edda24985..1d5d05e9a 100644 --- a/src/plugins/xfer/xfer-config.h +++ b/src/plugins/xfer/xfer-config.h @@ -40,8 +40,8 @@ extern struct t_config_option *xfer_config_network_fast_send; extern struct t_config_option *xfer_config_network_own_ip; extern struct t_config_option *xfer_config_network_port_range; extern struct t_config_option *xfer_config_network_send_ack; -extern struct t_config_option *xfer_config_network_speed_limit_send; extern struct t_config_option *xfer_config_network_speed_limit_recv; +extern struct t_config_option *xfer_config_network_speed_limit_send; extern struct t_config_option *xfer_config_network_timeout; extern struct t_config_option *xfer_config_file_auto_accept_chats; |