void ui_hide_roster(void) { ProfWin *window = wins_get_console(); if (window && win_has_active_subwin(window)) { wins_hide_subwin(window); } }
void ui_show_roster(void) { ProfWin *window = wins_get_console(); if (window && !win_has_active_subwin(window)) { wins_show_subwin(window); rosterwin_roster(); } }
void mucwin_hide_occupants(ProfMucWin *mucwin) { assert(mucwin != NULL); ProfWin *window = (ProfWin*)mucwin; if (win_has_active_subwin(window)) { wins_hide_subwin(window); } }
void mucwin_update_occupants(ProfMucWin *mucwin) { assert(mucwin != NULL); ProfWin *window = (ProfWin*)mucwin; if (win_has_active_subwin(window)) { occupantswin_occupants(mucwin->roomjid); } }
void mucwin_show_occupants(ProfMucWin *mucwin) { assert(mucwin != NULL); ProfWin *window = (ProfWin*)mucwin; if (!win_has_active_subwin(window)) { wins_show_subwin(window); occupantswin_occupants(mucwin->roomjid); } }
void ui_show_all_room_rosters(void) { GList *win_nums = wins_get_nums(); GList *curr = win_nums; while (curr) { int num = GPOINTER_TO_INT(curr->data); ProfWin *window = wins_get_by_num(num); if (window->type == WIN_MUC && !win_has_active_subwin(window)) { ProfMucWin *mucwin = (ProfMucWin*)window; assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK); mucwin_show_occupants(mucwin); } curr = g_list_next(curr); } g_list_free(curr); g_list_free(win_nums); }