| 86 } |
86 } |
| 87 |
87 |
| 88 static GList * |
88 static GList * |
| 89 get_pending_list(guint max) |
89 get_pending_list(guint max) |
| 90 { |
90 { |
| 91 GList *l_im = NULL; |
91 GList *l_im, *l_chat; |
| 92 GList *l_chat = NULL; |
|
| 93 |
92 |
| 94 l_im = pidgin_conversations_find_unseen_list(PURPLE_CONV_TYPE_IM, |
93 l_im = pidgin_conversations_find_unseen_list(PURPLE_CONV_TYPE_IM, |
| 95 PIDGIN_UNSEEN_TEXT, |
94 PIDGIN_UNSEEN_TEXT, |
| 96 FALSE, max); |
95 FALSE, max); |
| |
96 |
| |
97 /* Short circuit if we have our information already */ |
| |
98 if (max == 1 && l_im != NULL) |
| |
99 return l_im; |
| 97 |
100 |
| 98 l_chat = pidgin_conversations_find_unseen_list(PURPLE_CONV_TYPE_CHAT, |
101 l_chat = pidgin_conversations_find_unseen_list(PURPLE_CONV_TYPE_CHAT, |
| 99 PIDGIN_UNSEEN_NICK, |
102 PIDGIN_UNSEEN_NICK, |
| 100 FALSE, max); |
103 FALSE, max); |
| 101 |
104 |