Mercurial > pidgin.yaz
comparison src/blist.c @ 10427:16d63d8c26d8
[gaim-migrate @ 11679]
Shuffle some stuff around for uniformity, and call the accounts.xml
loading function from gaim_accounts_init()
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 26 Dec 2004 23:37:55 +0000 |
parents | 30d9ec7d001b |
children | 04c663ccbcb1 |
comparison
equal
deleted
inserted
replaced
10426:30d9ec7d001b | 10427:16d63d8c26d8 |
---|---|
128 if (new_priority == NULL) | 128 if (new_priority == NULL) |
129 new_priority = buddy; | 129 new_priority = buddy; |
130 else | 130 else |
131 { | 131 { |
132 int cmp; | 132 int cmp; |
133 | 133 |
134 cmp = gaim_presence_compare(gaim_buddy_get_presence(new_priority), | 134 cmp = gaim_presence_compare(gaim_buddy_get_presence(new_priority), |
135 gaim_buddy_get_presence(buddy)); | 135 gaim_buddy_get_presence(buddy)); |
136 | 136 |
137 if (cmp > 0 || (cmp == 0 && | 137 if (cmp > 0 || (cmp == 0 && |
138 gaim_prefs_get_bool("/core/contact/last_match"))) | 138 gaim_prefs_get_bool("/core/contact/last_match"))) |
2175 continue; | 2175 continue; |
2176 | 2176 |
2177 if (blist_buddy_should_save(exp_acct, (GaimBuddy *) bnode)) | 2177 if (blist_buddy_should_save(exp_acct, (GaimBuddy *) bnode)) |
2178 return TRUE; | 2178 return TRUE; |
2179 } | 2179 } |
2180 | 2180 |
2181 return FALSE; | 2181 return FALSE; |
2182 } | 2182 } |
2183 | 2183 |
2184 | 2184 |
2185 static void blist_write_contact(FILE *file, GaimAccount *exp_acct, GaimContact *contact) | 2185 static void blist_write_contact(FILE *file, GaimAccount *exp_acct, GaimContact *contact) |
2186 { | 2186 { |
2187 GaimBlistNode *bnode, *cnode = (GaimBlistNode *) contact; | 2187 GaimBlistNode *bnode, *cnode = (GaimBlistNode *) contact; |
2188 | 2188 |
2189 if (! blist_contact_should_save(exp_acct, contact)) | 2189 if (!blist_contact_should_save(exp_acct, contact)) |
2190 return; | 2190 return; |
2191 | 2191 |
2192 fprintf(file, "\t\t\t<contact"); | 2192 fprintf(file, "\t\t\t<contact"); |
2193 if (contact->alias) { | 2193 if (contact->alias) { |
2194 char *alias = g_markup_escape_text(contact->alias, -1); | 2194 char *alias = g_markup_escape_text(contact->alias, -1); |