Mercurial > pidgin.yaz
changeset 6394:2a4b93b57518
[gaim-migrate @ 6899]
a couple of tweaks for the new tab icons
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 06 Aug 2003 18:18:22 +0000 |
parents | 74ca311ceb2a |
children | 0587dd97f700 |
files | src/gtkconv.c |
diffstat | 1 files changed, 9 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkconv.c Wed Aug 06 14:33:58 2003 +0000 +++ b/src/gtkconv.c Wed Aug 06 18:18:22 2003 +0000 @@ -4782,13 +4782,12 @@ account = gaim_conversation_get_account(conv); b = gaim_find_buddy(account, name); - if (b != NULL) - gtk_image_set_from_pixbuf(GTK_IMAGE(gtkconv->icon), - gaim_gtk_blist_get_status_icon((GaimBlistNode *)b, - GAIM_STATUS_ICON_SMALL)); - else { - g_object_unref(gtkconv->icon); - gtkconv->icon = gtk_image_new(); + if (b != NULL) { + gtk_image_set_from_pixbuf(GTK_IMAGE(gtkconv->icon), + gaim_gtk_blist_get_status_icon((GaimBlistNode *)b, + GAIM_STATUS_ICON_SMALL)); + } else { + gtk_image_set_from_pixbuf(GTK_IMAGE(gtkconv->icon), NULL); } } @@ -4816,6 +4815,9 @@ g_timeout_add(0, (GSourceFunc)update_send_as_selection, win); smiley_themeize(gtkconv->imhtml); + + if (gaim_prefs_get_bool("/gaim/gtk/conversations/icons_on_tabs")) + update_tab_icon(conv); } else if (type == GAIM_CONV_UPDATE_TYPING || type == GAIM_CONV_UPDATE_UNSEEN) {