Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/notification.c @ 32708:10e5000326a5
Convert code to use the purple_account accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Sat, 01 Oct 2011 21:04:35 +0000 |
parents | 49d6ee09c74d |
children | 2ec94166be43 |
comparison
equal
deleted
inserted
replaced
32707:f75041cb3fec | 32708:10e5000326a5 |
---|---|
1388 | 1388 |
1389 gulong tmp_timestamp; | 1389 gulong tmp_timestamp; |
1390 | 1390 |
1391 session = cmdproc->session; | 1391 session = cmdproc->session; |
1392 account = session->account; | 1392 account = session->account; |
1393 gc = account->gc; | 1393 gc = purple_account_get_connection(account); |
1394 | 1394 |
1395 rru = cmd->params[1]; | 1395 rru = cmd->params[1]; |
1396 url = cmd->params[2]; | 1396 url = cmd->params[2]; |
1397 | 1397 |
1398 session->passport_info.mail_timestamp = time(NULL); | 1398 session->passport_info.mail_timestamp = time(NULL); |
2009 PurpleConnection *gc; | 2009 PurpleConnection *gc; |
2010 GHashTable *table; | 2010 GHashTable *table; |
2011 const char *unread; | 2011 const char *unread; |
2012 | 2012 |
2013 session = cmdproc->session; | 2013 session = cmdproc->session; |
2014 gc = session->account->gc; | 2014 gc = purple_account_get_connection(session->account); |
2015 | 2015 |
2016 if (strcmp(msg->remote_user, "Hotmail")) | 2016 if (strcmp(msg->remote_user, "Hotmail")) |
2017 /* This isn't an official message. */ | 2017 /* This isn't an official message. */ |
2018 return; | 2018 return; |
2019 | 2019 |
2060 PurpleConnection *gc; | 2060 PurpleConnection *gc; |
2061 GHashTable *table; | 2061 GHashTable *table; |
2062 const char *mdata, *unread; | 2062 const char *mdata, *unread; |
2063 | 2063 |
2064 session = cmdproc->session; | 2064 session = cmdproc->session; |
2065 gc = session->account->gc; | 2065 gc = purple_account_get_connection(session->account); |
2066 | 2066 |
2067 if (strcmp(msg->remote_user, "Hotmail")) | 2067 if (strcmp(msg->remote_user, "Hotmail")) |
2068 /* This isn't an official message. */ | 2068 /* This isn't an official message. */ |
2069 return; | 2069 return; |
2070 | 2070 |
2132 PurpleConnection *gc; | 2132 PurpleConnection *gc; |
2133 GHashTable *table; | 2133 GHashTable *table; |
2134 char *from, *subject, *tmp; | 2134 char *from, *subject, *tmp; |
2135 | 2135 |
2136 session = cmdproc->session; | 2136 session = cmdproc->session; |
2137 gc = session->account->gc; | 2137 gc = purple_account_get_connection(session->account); |
2138 | 2138 |
2139 if (strcmp(msg->remote_user, "Hotmail")) | 2139 if (strcmp(msg->remote_user, "Hotmail")) |
2140 /* This isn't an official message. */ | 2140 /* This isn't an official message. */ |
2141 return; | 2141 return; |
2142 | 2142 |
2217 default: | 2217 default: |
2218 break; | 2218 break; |
2219 } | 2219 } |
2220 | 2220 |
2221 if (*buf != '\0') | 2221 if (*buf != '\0') |
2222 purple_notify_info(cmdproc->session->account->gc, NULL, buf, NULL); | 2222 purple_notify_info(purple_account_get_connection(cmdproc->session->account), NULL, buf, NULL); |
2223 } | 2223 } |
2224 | 2224 |
2225 g_hash_table_destroy(table); | 2225 g_hash_table_destroy(table); |
2226 } | 2226 } |
2227 | 2227 |