Mercurial > pidgin
comparison libpurple/protocols/sametime/sametime.c @ 32238:1f68af4afe67
Use purple_conversation accessor methods.
author | andrew.victor@mxit.com |
---|---|
date | Sat, 01 Oct 2011 15:03:57 +0000 |
parents | c6943fd38d44 |
children | f75041cb3fec |
comparison
equal
deleted
inserted
replaced
32237:3e2191125ad7 | 32238:1f68af4afe67 |
---|---|
2478 | 2478 |
2479 tmp = mwError(err); | 2479 tmp = mwError(err); |
2480 text = g_strconcat(_("Unable to send message: "), tmp, NULL); | 2480 text = g_strconcat(_("Unable to send message: "), tmp, NULL); |
2481 | 2481 |
2482 gconv = convo_get_gconv(conv); | 2482 gconv = convo_get_gconv(conv); |
2483 if(gconv && !purple_conv_present_error(idb->user, gconv->account, text)) { | 2483 if(gconv && !purple_conv_present_error(idb->user, purple_conversation_get_account(gconv), text)) { |
2484 | 2484 |
2485 g_free(text); | 2485 g_free(text); |
2486 text = g_strdup_printf(_("Unable to send message to %s:"), | 2486 text = g_strdup_printf(_("Unable to send message to %s:"), |
2487 (idb->user)? idb->user: "(unknown)"); | 2487 (idb->user)? idb->user: "(unknown)"); |
2488 purple_notify_error(purple_account_get_connection(gconv->account), | 2488 purple_notify_error(purple_account_get_connection(purple_conversation_get_account(gconv)), |
2489 NULL, text, tmp); | 2489 NULL, text, tmp); |
2490 } | 2490 } |
2491 | 2491 |
2492 g_free(tmp); | 2492 g_free(tmp); |
2493 g_free(text); | 2493 g_free(text); |