mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 03:46:20 +00:00
move titlebar code in correct function
This commit is contained in:
@@ -191,25 +191,7 @@ _title_bar_draw(void)
|
||||
waddch(win, ' ');
|
||||
}
|
||||
|
||||
char *title = NULL;
|
||||
if (current && current->type == WIN_MUC) {
|
||||
char *use_as_name = prefs_get_string(PREF_TITLEBAR_MUC_TITLE);
|
||||
|
||||
if ((g_strcmp0(use_as_name, "name") == 0)) {
|
||||
ProfMucWin *mucwin = (ProfMucWin*) current;
|
||||
assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK);
|
||||
|
||||
if (mucwin->room_name) {
|
||||
title = strdup(mucwin->room_name);
|
||||
}
|
||||
}
|
||||
|
||||
prefs_free_string(use_as_name);
|
||||
}
|
||||
|
||||
if (title == NULL) {
|
||||
title = win_get_title(current);
|
||||
}
|
||||
char *title = win_get_title(current);
|
||||
|
||||
mvwprintw(win, 0, 0, " %s", title);
|
||||
free(title);
|
||||
|
||||
Reference in New Issue
Block a user