mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Implemented text-multi, jid-single and fixed display for room config forms
This commit is contained in:
parent
0897cd7d17
commit
f49a6a65d9
@ -1935,6 +1935,14 @@ TODO add command to get help for a field
|
||||
}
|
||||
win_save_newline(window);
|
||||
}
|
||||
if (g_strcmp0(field->type, "text-multi") == 0) {
|
||||
win_save_newline(window);
|
||||
while (curr_value != NULL) {
|
||||
char *value = curr_value->data;
|
||||
win_save_vprint(window, '-', NULL, 0, COLOUR_ONLINE, "", " %s", value);
|
||||
curr_value = g_slist_next(curr_value);
|
||||
}
|
||||
}
|
||||
if (g_strcmp0(field->type, "boolean") == 0) {
|
||||
if (curr_value == NULL) {
|
||||
win_save_print(window, '-', NULL, NO_DATE, COLOUR_OFFLINE, "", "FALSE");
|
||||
@ -1984,6 +1992,15 @@ TODO add command to get help for a field
|
||||
}
|
||||
}
|
||||
}
|
||||
if (g_strcmp0(field->type, "jid-single") == 0) {
|
||||
if (curr_value != NULL) {
|
||||
char *value = curr_value->data;
|
||||
if (value != NULL) {
|
||||
win_save_print(window, '-', NULL, NO_DATE | NO_EOL, COLOUR_ONLINE, "", value);
|
||||
}
|
||||
}
|
||||
win_save_newline(window);
|
||||
}
|
||||
if (g_strcmp0(field->type, "jid-multi") == 0) {
|
||||
win_save_newline(window);
|
||||
while (curr_value != NULL) {
|
||||
@ -1992,6 +2009,15 @@ TODO add command to get help for a field
|
||||
curr_value = g_slist_next(curr_value);
|
||||
}
|
||||
}
|
||||
if (g_strcmp0(field->type, "fixed") == 0) {
|
||||
if (curr_value != NULL) {
|
||||
char *value = curr_value->data;
|
||||
if (value != NULL) {
|
||||
win_save_print(window, '-', NULL, NO_DATE | NO_EOL, 0, "", value);
|
||||
}
|
||||
}
|
||||
win_save_newline(window);
|
||||
}
|
||||
}
|
||||
|
||||
curr_field = g_slist_next(curr_field);
|
||||
|
Loading…
Reference in New Issue
Block a user