# HG changeset patch # User Christopher O'Brien # Date 1137694146 0 # Node ID 96cf4e176ff8beebdeee34ca629542f4ee3a27a7 # Parent 9a5b9680aaeb6b2ac7aab6cb0b8c858a111f2af6 [gaim-migrate @ 15303] updating tooltip to be a bit more condensed, and to honor the newly added full parameter. Also using the default name for the available status committer: Tailor Script diff -r 9a5b9680aaeb -r 96cf4e176ff8 src/protocols/sametime/sametime.c --- a/src/protocols/sametime/sametime.c Thu Jan 19 07:36:38 2006 +0000 +++ b/src/protocols/sametime/sametime.c Thu Jan 19 18:09:06 2006 +0000 @@ -3226,29 +3226,29 @@ str = g_string_new(NULL); - tmp = status_text(b); - g_string_append_printf(str, _("\nStatus: %s"), tmp); - tmp = mwServiceAware_getText(pd->srvc_aware, &idb); if(tmp) { tmp = g_markup_escape_text(tmp, -1); - g_string_append_printf(str, _("\nMessage: %s"), tmp); + g_string_append_printf(str, _("\n%s: %s"), status_text(b), tmp); g_free((char *) tmp); - } - - tmp = user_supports_text(pd->srvc_aware, b->name); - if(tmp) { - g_string_append_printf(str, _("\nSupports: %s"), tmp); - g_free((char *) tmp); + + } else { + g_string_append_printf(str, _("\nStatus: %s"), status_text(b)); } - if(buddy_is_external(b)) { - g_string_append(str, _("\nExternal User")); + if(full) { + tmp = user_supports_text(pd->srvc_aware, b->name); + if(tmp) { + g_string_append_printf(str, _("\nSupports: %s"), tmp); + g_free((char *) tmp); + } + + if(buddy_is_external(b)) { + g_string_append(str, _("\nExternal User")); + } } - tmp = str->str; - g_string_free(str, FALSE); - return (char *) tmp; + return g_string_free(str, FALSE); } @@ -3257,7 +3257,7 @@ GaimStatusType *type; type = gaim_status_type_new(GAIM_STATUS_AVAILABLE, MW_STATE_ACTIVE, - _("Available"), TRUE); + NULL, TRUE); gaim_status_type_add_attr(type, MW_STATE_MESSAGE, _("Message"), gaim_value_new(GAIM_TYPE_STRING)); types = g_list_append(types, type);