mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 04:46:21 +00:00
Added [OTR] and (trusted/untrusted) to titlebar for OTR sessions
This commit is contained in:
@@ -516,6 +516,15 @@ _get_recipient_string(ProfWin *window)
|
||||
g_string_append(result, window->from);
|
||||
}
|
||||
|
||||
if (window->is_otr) {
|
||||
g_string_append(result, " [OTR]");
|
||||
if (window->is_trusted) {
|
||||
g_string_append(result, " (trusted)");
|
||||
} else {
|
||||
g_string_append(result, " (untrusted)");
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ win_create(const char * const title, int cols, win_type_t type)
|
||||
new_win->history_shown = 0;
|
||||
new_win->type = type;
|
||||
new_win->is_otr = FALSE;
|
||||
new_win->is_trusted = FALSE;
|
||||
scrollok(new_win->win, TRUE);
|
||||
|
||||
return new_win;
|
||||
|
||||
@@ -49,6 +49,7 @@ typedef struct prof_win_t {
|
||||
WINDOW *win;
|
||||
win_type_t type;
|
||||
gboolean is_otr;
|
||||
gboolean is_trusted;
|
||||
int y_pos;
|
||||
int paged;
|
||||
int unread;
|
||||
|
||||
Reference in New Issue
Block a user