Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 1226:2521efbf3b72
New (debug) subcommand, buffer list
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 19 May 2007 11:56:32 +0200 |
parents | 0e9e9724d643 |
children | 79c396678f1b |
comparison
equal
deleted
inserted
replaced
1225:0e9e9724d643 | 1226:2521efbf3b72 |
---|---|
2123 | 2123 |
2124 // Finished :) | 2124 // Finished :) |
2125 update_panels(); | 2125 update_panels(); |
2126 } | 2126 } |
2127 | 2127 |
2128 #ifdef DEBUG_ENABLE | |
2129 // buffer_list() | |
2130 // key: winId/jid | |
2131 // value: winbuf structure | |
2132 // data: none. | |
2133 static void buffer_list(gpointer key, gpointer value, gpointer data) | |
2134 { | |
2135 winbuf *win_entry = value; | |
2136 scr_LogPrint(LPRINT_NORMAL, " %s (%ld)", key, | |
2137 g_list_length(g_list_first(win_entry->bd->hbuf))); | |
2138 } | |
2139 | |
2140 void scr_BufferList(void) | |
2141 { | |
2142 scr_LogPrint(LPRINT_NORMAL, "Buffer list:"); | |
2143 scr_LogPrint(LPRINT_NORMAL, " [status] (%ld)", | |
2144 g_list_length(g_list_first(statusWindow->bd->hbuf))); | |
2145 g_hash_table_foreach(winbufhash, buffer_list, NULL); | |
2146 scr_LogPrint(LPRINT_NORMAL, "End of buffer list."); | |
2147 } | |
2148 #endif | |
2149 | |
2128 // scr_set_chatmode() | 2150 // scr_set_chatmode() |
2129 // Public function to (un)set chatmode... | 2151 // Public function to (un)set chatmode... |
2130 inline void scr_set_chatmode(int enable) | 2152 inline void scr_set_chatmode(int enable) |
2131 { | 2153 { |
2132 chatmode = enable; | 2154 chatmode = enable; |