Mercurial > pidgin.yaz
comparison pidgin/gtkconv.c @ 23159:e206ff2e5efa
Remove an else block which just calls pidgin_blist_get_emblem on a PurpleChat,
but pidgin_blist_get_emblem will always return NULL for a chat at the moment
so this is useless.
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Sat, 17 May 2008 19:54:58 +0000 |
parents | bc58e2d9f0f5 |
children | 25161f5ea347 |
comparison
equal
deleted
inserted
replaced
23158:da5d1ecc5c20 | 23159:e206ff2e5efa |
---|---|
2509 | 2509 |
2510 if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM) { | 2510 if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM) { |
2511 PurpleBuddy *b = purple_find_buddy(conv->account, conv->name); | 2511 PurpleBuddy *b = purple_find_buddy(conv->account, conv->name); |
2512 if (b) | 2512 if (b) |
2513 emblem = pidgin_blist_get_emblem((PurpleBlistNode*)b); | 2513 emblem = pidgin_blist_get_emblem((PurpleBlistNode*)b); |
2514 } else { | |
2515 PurpleChat *c = purple_blist_find_chat(conv->account, conv->name); | |
2516 if (c) | |
2517 emblem = pidgin_blist_get_emblem((PurpleBlistNode*)c); | |
2518 } | 2514 } |
2519 | 2515 |
2520 g_return_if_fail(status != NULL); | 2516 g_return_if_fail(status != NULL); |
2521 | 2517 |
2522 gtk_image_set_from_pixbuf(GTK_IMAGE(gtkconv->icon), status); | 2518 gtk_image_set_from_pixbuf(GTK_IMAGE(gtkconv->icon), status); |