Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 986:ed697234bd39
Chat states receival (Alexis Hildebrandt)
Patch from Alexis Hildebrandt, slightly modified
(mostly coding style updates).
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 29 Oct 2006 11:43:00 +0100 |
parents | 553b8ecf901f |
children | f47e312560af |
comparison
equal
deleted
inserted
replaced
985:b33ca4e1c37d | 986:ed697234bd39 |
---|---|
1166 rOffset = offset; | 1166 rOffset = offset; |
1167 | 1167 |
1168 for (i=0; i<maxy && buddy; buddy = g_list_next(buddy)) { | 1168 for (i=0; i<maxy && buddy; buddy = g_list_next(buddy)) { |
1169 unsigned short bflags, btype, ismsg, isgrp, ismuc, ishid, isspe; | 1169 unsigned short bflags, btype, ismsg, isgrp, ismuc, ishid, isspe; |
1170 gchar *rline_locale; | 1170 gchar *rline_locale; |
1171 GSList *resources; | |
1171 | 1172 |
1172 bflags = buddy_getflags(BUDDATA(buddy)); | 1173 bflags = buddy_getflags(BUDDATA(buddy)); |
1173 btype = buddy_gettype(BUDDATA(buddy)); | 1174 btype = buddy_gettype(BUDDATA(buddy)); |
1174 | 1175 |
1175 ismsg = bflags & ROSTER_FLAG_MSG; | 1176 ismsg = bflags & ROSTER_FLAG_MSG; |
1183 continue; | 1184 continue; |
1184 } | 1185 } |
1185 | 1186 |
1186 status = '?'; | 1187 status = '?'; |
1187 pending = ' '; | 1188 pending = ' '; |
1189 | |
1190 resources = buddy_getresources(BUDDATA(buddy)); | |
1191 for ( ; resources ; resources = g_slist_next(resources) ) { | |
1192 guint events = buddy_resource_getevents(BUDDATA(buddy), | |
1193 resources ? resources->data : ""); | |
1194 if (events) { | |
1195 if (events & ROSTER_EVENT_MSG && false) { // FIXME: not yet. | |
1196 pending = '#'; | |
1197 break; | |
1198 } else if (events & ROSTER_EVENT_COMPOSING) { | |
1199 pending = '+'; | |
1200 break; | |
1201 } | |
1202 } | |
1203 } | |
1188 | 1204 |
1189 // Display message notice if there is a message flag, but not | 1205 // Display message notice if there is a message flag, but not |
1190 // for unfolded groups. | 1206 // for unfolded groups. |
1191 if (ismsg && (!isgrp || ishid)) { | 1207 if (ismsg && (!isgrp || ishid)) { |
1192 pending = '#'; | 1208 pending = '#'; |