# HG changeset patch # User Nathan Walp # Date 1084761604 0 # Node ID 7c008d98ef331326ca9152f4c71d2d72b075b52e # Parent bfc8dea583860e5c13c137ce9384cd8a6fca995d [gaim-migrate @ 9734] this was decidedly easy to do committer: Tailor Script diff -r bfc8dea58386 -r 7c008d98ef33 src/blist.c --- a/src/blist.c Mon May 17 02:02:24 2004 +0000 +++ b/src/blist.c Mon May 17 02:40:04 2004 +0000 @@ -1484,7 +1484,8 @@ ops->update(gaimbuddylist, bnode); } } - if(recompute) { + if(recompute || + gaim_blist_node_get_bool(cnode, "show_offline")) { gaim_contact_compute_priority_buddy((GaimContact*)cnode); ops->update(gaimbuddylist, cnode); } @@ -2422,6 +2423,9 @@ } } + g_hash_table_foreach(cnode->settings, + blist_print_cnode_settings, file); + fprintf(file, "\t\t\t\n"); } else if(GAIM_BLIST_NODE_IS_CHAT(cnode)) { GaimChat *chat = (GaimChat *)cnode; diff -r bfc8dea58386 -r 7c008d98ef33 src/gtkblist.c --- a/src/gtkblist.c Mon May 17 02:02:24 2004 +0000 +++ b/src/gtkblist.c Mon May 17 02:40:04 2004 +0000 @@ -2133,7 +2133,10 @@ gtknode = node->ui_data; if (node->child && GAIM_BLIST_NODE_IS_CONTACT(node) && - ((GaimContact*)node)->online > 1 && !gtknode->contact_expanded && + (((GaimContact*)node)->online > 1 || + (gaim_blist_node_get_bool(node, "show_offline") && + ((GaimContact*)node)->currentsize > 1)) && + !gtknode->contact_expanded && gaim_prefs_get_bool("/gaim/gtk/blist/auto_expand_contacts")) { GtkTreeIter i; gaim_gtk_blist_expand_contact_cb(NULL, node); @@ -3627,7 +3630,8 @@ if(buddy && (buddy->present != GAIM_BUDDY_OFFLINE || (gaim_account_is_connected(buddy->account) && - gaim_prefs_get_bool("/gaim/gtk/blist/show_offline_buddies")))) { + gaim_prefs_get_bool("/gaim/gtk/blist/show_offline_buddies")) || + gaim_blist_node_get_bool(node, "show_offline"))) { GtkTreeIter iter; if(!insert_node(list, node, &iter)) @@ -3680,7 +3684,8 @@ if(gtkparentnode->contact_expanded && (buddy->present != GAIM_BUDDY_OFFLINE || (gaim_account_is_connected(buddy->account) && - gaim_prefs_get_bool("/gaim/gtk/blist/show_offline_buddies")))) { + gaim_prefs_get_bool("/gaim/gtk/blist/show_offline_buddies")) || + gaim_blist_node_get_bool(node->parent, "show_offline"))) { GtkTreeIter iter; if(!insert_node(list, node, &iter))