diff src/blist.c @ 10389:c432b927b0b1

[gaim-migrate @ 11616] Cleaned up "use_server_alias" some more and removed the timestamp option. Default: Yes. The timestamp plugin will override this, however; also the timestamp is now centered in the conversation. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 16 Dec 2004 05:34:34 +0000
parents 28135f8c226d
children aab0c9508318
line wrap: on
line diff
--- a/src/blist.c	Thu Dec 16 03:50:54 2004 +0000
+++ b/src/blist.c	Thu Dec 16 05:34:34 2004 +0000
@@ -96,31 +96,6 @@
 	g_free(hb);
 }
 
-static void blist_pref_cb(const char *name, GaimPrefType type, gpointer value, gpointer data)
-{
-	GaimBlistUiOps *ops = gaimbuddylist->ui_ops;
-	GaimBlistNode *gnode, *cnode, *bnode;
-
-	if (!ops || !ops->update)
-		return;
-
-	for (gnode = gaimbuddylist->root; gnode; gnode = gnode->next) {
-		if (!GAIM_BLIST_NODE_IS_GROUP(gnode))
-			continue;
-		for (cnode = gnode->child; cnode; cnode = cnode->next) {
-			if (GAIM_BLIST_NODE_IS_CONTACT(cnode)) {
-				for (bnode = cnode->child; bnode; bnode = bnode->next) {
-					if (!GAIM_BLIST_NODE_IS_BUDDY(bnode))
-						continue;
-					ops->update(gaimbuddylist, bnode);
-				}
-			} else if (GAIM_BLIST_NODE_IS_CHAT(cnode)) {
-				ops->update(gaimbuddylist, cnode);
-			}
-		}
-	}
-}
-
 void gaim_contact_invalidate_priority_buddy(GaimContact *contact)
 {
 	g_return_if_fail(contact != NULL);
@@ -202,9 +177,6 @@
 	if (gbl->ui_ops != NULL && gbl->ui_ops->new_list != NULL)
 		gbl->ui_ops->new_list(gbl);
 
-	gaim_prefs_connect_callback(gaim_blist_get_handle(), "/core/buddies/use_server_alias",
-								blist_pref_cb, NULL);
-
 	return gbl;
 }
 
@@ -1413,8 +1385,7 @@
 	if ((buddy->alias != NULL) && (*buddy->alias != '\0')) {
 		return buddy->alias;
 	} else if ((buddy->server_alias != NULL) &&
-			   (*buddy->server_alias != '\0') &&
-			   (gaim_prefs_get_bool("/core/buddies/use_server_alias"))) {
+		   (*buddy->server_alias != '\0')) {
 
 		return buddy->server_alias;
 	}
@@ -1458,8 +1429,7 @@
 		return buddy->alias;
 
 	/* The server alias, if preferences say so */
-	if ((buddy->server_alias) && (*buddy->server_alias) &&
-			(gaim_prefs_get_bool("/core/buddies/use_server_alias")))
+	if ((buddy->server_alias) && (*buddy->server_alias))
 		return buddy->server_alias;
 
 	/* The buddy's user name (i.e. no alias) */