Mercurial > pidgin
comparison src/blist.c @ 5266:b3a03b86b09b
[gaim-migrate @ 5638]
Now we check to see if the previous buddy status and the new status are
different before doing any updating. This was causing events to be called
way too often, and far too much updating.
(I hope I didn't break flying buddies!)
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 01 May 2003 07:41:44 +0000 |
parents | 750e4801819f |
children | d7771fe33cbd |
comparison
equal
deleted
inserted
replaced
5265:0e2cc6379618 | 5266:b3a03b86b09b |
---|---|
132 ops->set_visible(gaimbuddylist, show); | 132 ops->set_visible(gaimbuddylist, show); |
133 } | 133 } |
134 | 134 |
135 void gaim_blist_update_buddy_status (struct buddy *buddy, int status) | 135 void gaim_blist_update_buddy_status (struct buddy *buddy, int status) |
136 { | 136 { |
137 struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops; | 137 struct gaim_blist_ui_ops *ops; |
138 | |
139 if (buddy->uc == status) | |
140 return; | |
141 | |
142 ops = gaimbuddylist->ui_ops; | |
138 buddy->uc = status; | 143 buddy->uc = status; |
139 | 144 |
140 if(!(status & UC_UNAVAILABLE)) | 145 if(!(status & UC_UNAVAILABLE)) |
141 gaim_event_broadcast(event_buddy_back, buddy->account->gc, buddy->name); | 146 gaim_event_broadcast(event_buddy_back, buddy->account->gc, buddy->name); |
142 else | 147 else |