| 126 DATA_COLUMN, |
126 DATA_COLUMN, |
| 127 |
127 |
| 128 /** |
128 /** |
| 129 * This column stores the GdkPixbuf for the status emblem. Currently only 'saved' is stored. |
129 * This column stores the GdkPixbuf for the status emblem. Currently only 'saved' is stored. |
| 130 * In the GtkTreeModel for the dropdown, this is the stock-id (gchararray), and for the |
130 * In the GtkTreeModel for the dropdown, this is the stock-id (gchararray), and for the |
| 131 * GtkTreeModel for the cell_view (for the account-specific statusbox), this is the prpl-icon |
131 * GtkTreeModel for the cell_view (for the account-specific statusbox), this is the protocol icon |
| 132 * (GdkPixbuf) of the account. |
132 * (GdkPixbuf) of the account. |
| 133 */ |
133 */ |
| 134 EMBLEM_COLUMN, |
134 EMBLEM_COLUMN, |
| 135 |
135 |
| 136 /** |
136 /** |
| 961 * statuses and a token account if they do */ |
961 * statuses and a token account if they do */ |
| 962 static PurpleAccount* check_active_accounts_for_identical_statuses(void) |
962 static PurpleAccount* check_active_accounts_for_identical_statuses(void) |
| 963 { |
963 { |
| 964 GList *iter, *active_accts = purple_accounts_get_all_active(); |
964 GList *iter, *active_accts = purple_accounts_get_all_active(); |
| 965 PurpleAccount *acct1 = NULL; |
965 PurpleAccount *acct1 = NULL; |
| 966 const char *prpl1 = NULL; |
966 const char *proto1 = NULL; |
| 967 |
967 |
| 968 if (active_accts) { |
968 if (active_accts) { |
| 969 acct1 = active_accts->data; |
969 acct1 = active_accts->data; |
| 970 prpl1 = purple_account_get_protocol_id(acct1); |
970 proto1 = purple_account_get_protocol_id(acct1); |
| 971 } else { |
971 } else { |
| 972 /* there's no enabled account */ |
972 /* there's no enabled account */ |
| 973 return NULL; |
973 return NULL; |
| 974 } |
974 } |
| 975 |
975 |
| 976 /* start at the second account */ |
976 /* start at the second account */ |
| 977 for (iter = active_accts->next; iter; iter = iter->next) { |
977 for (iter = active_accts->next; iter; iter = iter->next) { |
| 978 PurpleAccount *acct2 = iter->data; |
978 PurpleAccount *acct2 = iter->data; |
| 979 GList *s1, *s2; |
979 GList *s1, *s2; |
| 980 |
980 |
| 981 if (!g_str_equal(prpl1, purple_account_get_protocol_id(acct2))) { |
981 if (!g_str_equal(proto1, purple_account_get_protocol_id(acct2))) { |
| 982 acct1 = NULL; |
982 acct1 = NULL; |
| 983 break; |
983 break; |
| 984 } |
984 } |
| 985 |
985 |
| 986 for (s1 = purple_account_get_status_types(acct1), |
986 for (s1 = purple_account_get_status_types(acct1), |