comparison libpurple/protocols/msnp9/notification.c @ 25606:2260e5b0ca91

*** Plucked rev f9080d0b (khc@pidgin.im): correctly NULL terminate all the arrays since that's what gtknotify assumes, also fixed a memory leak in gmail notification *** Plucked rev a543de79 (khc@pidgin.im): Qulogic pointed out that glib has G_N_ELEMENTS already *** Plucked rev 19b202a7 (khc@pidgin.im): used the wrong count variable here
author Paul Aurich <paul@darkrain42.org>
date Sun, 10 May 2009 23:25:26 +0000
parents f05da3bc20d9
children
comparison
equal deleted inserted replaced
25605:9c0337d4b878 25606:2260e5b0ca91
1278 { 1278 {
1279 int count = atoi(unread); 1279 int count = atoi(unread);
1280 1280
1281 if (count > 0) 1281 if (count > 0)
1282 { 1282 {
1283 const char *passport; 1283 const char *passports[2] = { msn_user_get_passport(session->user) };
1284 const char *url; 1284 const char *urls[2] = { session->passport_info.file };
1285 1285
1286 passport = msn_user_get_passport(session->user); 1286 purple_notify_emails(gc, count, FALSE, NULL, NULL,
1287 url = session->passport_info.file; 1287 passports, urls, NULL, NULL);
1288
1289 purple_notify_emails(gc, atoi(unread), FALSE, NULL, NULL,
1290 &passport, &url, NULL, NULL);
1291 } 1288 }
1292 } 1289 }
1293 1290
1294 g_hash_table_destroy(table); 1291 g_hash_table_destroy(table);
1295 } 1292 }