diff src/blist.c @ 6006:0aeb4fd0fc65

[gaim-migrate @ 6454] A bit more pref clean up. Christian or Nathan: Could one of you take a look at blist_pref_cb in blist.c and let me know the correct way to do that? Or if you wanna fix that feel free :-) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 03 Jul 2003 22:25:14 +0000
parents 60d9cbfb6bf8
children 4c16227f7cd9
line wrap: on
line diff
--- a/src/blist.c	Thu Jul 03 21:38:52 2003 +0000
+++ b/src/blist.c	Thu Jul 03 22:25:14 2003 +0000
@@ -70,6 +70,12 @@
 	return ((!strcmp(hb1->name, hb2->name)) && hb1->account == hb2->account && hb1->group == hb2->group);
 }
 
+static void blist_pref_cb(const char *name, GaimPrefType typ, gpointer value, gpointer data)
+{
+	/* XXX - We shouldn't call gtk functions directly */
+	/* gaim_gtk_blist_refresh(gaimbuddylist); */
+}
+
 /*****************************************************************************
  * Public API functions                                                      *
  *****************************************************************************/
@@ -86,6 +92,8 @@
 	if (gbl->ui_ops != NULL && gbl->ui_ops->new_list != NULL)
 		gbl->ui_ops->new_list(gbl);
 
+	gaim_prefs_connect_callback("/core/buddies/use_server_alias", blist_pref_cb, NULL);
+
 	return gbl;
 }