| 158 gboolean state, gpointer data) |
158 gboolean state, gpointer data) |
| 159 { |
159 { |
| 160 PidginAccountManagerRow *row = data; |
160 PidginAccountManagerRow *row = data; |
| 161 PurpleAccount *account = row->account; |
161 PurpleAccount *account = row->account; |
| 162 |
162 |
| 163 if(purple_account_get_enabled(account) == state) { |
|
| 164 return; |
|
| 165 } |
|
| 166 |
|
| 167 /* The account was just enabled, so set its status. */ |
|
| 168 if(state) { |
|
| 169 PurpleSavedStatus *status = purple_savedstatus_get_current(); |
|
| 170 purple_savedstatus_activate_for_account(status, account); |
|
| 171 } |
|
| 172 |
|
| 173 purple_account_set_enabled(account, state); |
163 purple_account_set_enabled(account, state); |
| 174 } |
164 } |
| 175 |
165 |
| 176 static char * |
166 static char * |
| 177 pidgin_account_manager_row_buddyicon_cb(G_GNUC_UNUSED GObject *self, |
167 pidgin_account_manager_row_buddyicon_cb(G_GNUC_UNUSED GObject *self, |