| 2353 { |
2353 { |
| 2354 PurpleAccount *account = NULL; |
2354 PurpleAccount *account = NULL; |
| 2355 const char *name = NULL; |
2355 const char *name = NULL; |
| 2356 const char *stock = NULL; |
2356 const char *stock = NULL; |
| 2357 GdkPixbuf *status = NULL; |
2357 GdkPixbuf *status = NULL; |
| 2358 PurpleBlistUiOps *ops = purple_blist_get_ui_ops(); |
|
| 2359 GtkIconSize size; |
2358 GtkIconSize size; |
| 2360 |
2359 |
| 2361 g_return_val_if_fail(conv != NULL, NULL); |
2360 g_return_val_if_fail(conv != NULL, NULL); |
| 2362 |
2361 |
| 2363 account = purple_conversation_get_account(conv); |
2362 account = purple_conversation_get_account(conv); |
| 2371 PurpleBuddy *b = purple_blist_find_buddy(account, name); |
2370 PurpleBuddy *b = purple_blist_find_buddy(account, name); |
| 2372 if (b != NULL) { |
2371 if (b != NULL) { |
| 2373 /* I hate this hack. It fixes a bug where the pending message icon |
2372 /* I hate this hack. It fixes a bug where the pending message icon |
| 2374 * displays in the conv tab even though it shouldn't. |
2373 * displays in the conv tab even though it shouldn't. |
| 2375 * A better solution would be great. */ |
2374 * A better solution would be great. */ |
| 2376 if (ops && ops->update) |
2375 purple_blist_update_node(NULL, PURPLE_BLIST_NODE(b)); |
| 2377 ops->update(NULL, (PurpleBlistNode*)b); |
|
| 2378 } |
2376 } |
| 2379 } |
2377 } |
| 2380 |
2378 |
| 2381 stock = pidgin_conv_get_icon_stock(conv); |
2379 stock = pidgin_conv_get_icon_stock(conv); |
| 2382 size = gtk_icon_size_from_name(icon_size); |
2380 size = gtk_icon_size_from_name(icon_size); |