# HG changeset patch # User Nathan Walp # Date 1060193902 0 # Node ID 2a4b93b57518be27e52961ee7ba3cf5fe1e56b41 # Parent 74ca311ceb2a8027abde324decb86b9b4d7090f6 [gaim-migrate @ 6899] a couple of tweaks for the new tab icons committer: Tailor Script diff -r 74ca311ceb2a -r 2a4b93b57518 src/gtkconv.c --- 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) {