Mercurial > pidgin.yaz
comparison libpurple/protocols/sametime/sametime.c @ 32767:2ec94166be43
On the way to hiding the PurpleConnection struct.
* Added purple_connection_get_flags() and purple_connection_set_flags()
* Use purple_connection_ accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 18 Oct 2011 18:47:48 +0000 |
parents | 7353c0c50117 |
children | 6135b24cdc8a |
comparison
equal
deleted
inserted
replaced
32766:ea2b621fd3ba | 32767:2ec94166be43 |
---|---|
2529 if(! gconv) return; | 2529 if(! gconv) return; |
2530 | 2530 |
2531 gc = purple_conversation_get_gc(gconv); | 2531 gc = purple_conversation_get_gc(gconv); |
2532 if(! gc) return; | 2532 if(! gc) return; |
2533 | 2533 |
2534 purple_conversation_set_features(gconv, gc->flags); | 2534 purple_conversation_set_features(gconv, purple_connection_get_flags(gc)); |
2535 } | 2535 } |
2536 | 2536 |
2537 | 2537 |
2538 /** called when a mw conversation and purple conversation come together, | 2538 /** called when a mw conversation and purple conversation come together, |
2539 to inform the purple conversation of what features to offer the | 2539 to inform the purple conversation of what features to offer the |
3699 | 3699 |
3700 gc = purple_account_get_connection(account); | 3700 gc = purple_account_get_connection(account); |
3701 pd = mwPurplePluginData_new(gc); | 3701 pd = mwPurplePluginData_new(gc); |
3702 | 3702 |
3703 /* while we do support images, the default is to not offer it */ | 3703 /* while we do support images, the default is to not offer it */ |
3704 gc->flags |= PURPLE_CONNECTION_NO_IMAGES; | 3704 purple_connection_set_flags(gc, PURPLE_CONNECTION_NO_IMAGES); |
3705 | 3705 |
3706 user = g_strdup(purple_account_get_username(account)); | 3706 user = g_strdup(purple_account_get_username(account)); |
3707 | 3707 |
3708 host = strrchr(user, ':'); | 3708 host = strrchr(user, ':'); |
3709 if(host) { | 3709 if(host) { |