Mercurial > pidgin.yaz
comparison src/protocols/sametime/sametime.c @ 12953:397dc3344563
[gaim-migrate @ 15306]
I don't use Sametime, so I don't know if this is correct, but I'm hoping to bring the tooltip a little more in line with the other protocols.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 19 Jan 2006 19:37:37 +0000 |
parents | 30d6ebea36e2 |
children | aba96d7cee74 |
comparison
equal
deleted
inserted
replaced
12952:30d6ebea36e2 | 12953:397dc3344563 |
---|---|
3177 GaimConnection *gc; | 3177 GaimConnection *gc; |
3178 struct mwGaimPluginData *pd; | 3178 struct mwGaimPluginData *pd; |
3179 struct mwAwareIdBlock idb = { mwAware_USER, b->name, NULL }; | 3179 struct mwAwareIdBlock idb = { mwAware_USER, b->name, NULL }; |
3180 | 3180 |
3181 GString *str; | 3181 GString *str; |
3182 const char *tmp; | 3182 const char *message; |
3183 char *tmp = NULL; | |
3184 const char *status; | |
3183 | 3185 |
3184 gc = b->account->gc; | 3186 gc = b->account->gc; |
3185 pd = gc->proto_data; | 3187 pd = gc->proto_data; |
3186 | 3188 |
3187 str = g_string_new(NULL); | 3189 str = g_string_new(NULL); |
3188 | 3190 |
3189 tmp = mwServiceAware_getText(pd->srvc_aware, &idb); | 3191 message = mwServiceAware_getText(pd->srvc_aware, &idb); |
3190 if(tmp) { | 3192 status = status_text(b); |
3191 tmp = g_markup_escape_text(tmp, -1); | 3193 |
3192 g_string_append_printf(str, _("\n<b>%s</b>: %s"), status_text(b), tmp); | 3194 if(message != NULL && gaim_utf8_strcasecmp(status, message)) { |
3193 g_free((char *) tmp); | 3195 tmp = g_markup_escape_text(message, -1); |
3194 | 3196 } |
3195 } else { | 3197 |
3196 g_string_append_printf(str, _("\n<b>Status</b>: %s"), status_text(b)); | 3198 g_string_append_printf(str, _("\n<b>Status:</b> %s"), status); |
3199 if(tmp != NULL) { | |
3200 g_string_append_printf(str, _("\n<b>Message:</b> %s"), tmp); | |
3201 g_free(tmp); | |
3197 } | 3202 } |
3198 | 3203 |
3199 if(full) { | 3204 if(full) { |
3200 tmp = user_supports_text(pd->srvc_aware, b->name); | 3205 tmp = user_supports_text(pd->srvc_aware, b->name); |
3201 if(tmp) { | 3206 if(tmp) { |
3202 g_string_append_printf(str, _("\n<b>Supports</b>: %s"), tmp); | 3207 g_string_append_printf(str, _("\n<b>Supports:</b> %s"), tmp); |
3203 g_free((char *) tmp); | 3208 g_free(tmp); |
3204 } | 3209 } |
3205 | 3210 |
3206 if(buddy_is_external(b)) { | 3211 if(buddy_is_external(b)) { |
3207 g_string_append(str, _("\n<b>External User</b>")); | 3212 g_string_append(str, _("\n<b>External User</b>")); |
3208 } | 3213 } |