mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +02:00
make lines reformattable
- completely removed the old textbuffer representation ( https://github.com/shabble/irssi-docs/wiki/Notes-256-Colour#textbuffer-encoding ) - textbuffer-formats is an extra module, so if we unhook the signals it should go back to the "old way" of storing pre-rendered tex - design uses cache, original formats and list of arguments
This commit is contained in:
parent
94ae7f9cd3
commit
f95fc81130
21 changed files with 789 additions and 587 deletions
|
|
@ -25,7 +25,8 @@ OUTPUT:
|
|||
RETVAL
|
||||
|
||||
void
|
||||
textbuffer_line_get_text(line, coloring)
|
||||
textbuffer_line_get_text(buffer, line, coloring)
|
||||
Irssi::TextUI::TextBuffer buffer
|
||||
Irssi::TextUI::Line line
|
||||
int coloring
|
||||
PREINIT:
|
||||
|
|
@ -33,7 +34,7 @@ PREINIT:
|
|||
SV *result;
|
||||
PPCODE:
|
||||
str = g_string_new(NULL);
|
||||
textbuffer_line2text(line, coloring, str);
|
||||
textbuffer_line2text(buffer, line, coloring, str);
|
||||
result = new_pv(str->str);
|
||||
XPUSHs(sv_2mortal(result));
|
||||
g_string_free(str, TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue