summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-04-27 18:41:59 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-04-27 18:41:59 +0000
commita68d8dd5399cf543ce2e29170edc5aa616b1df03 (patch)
treea30e765f26a868d02e8306f17fbb41cf9d969351
parent2321deb9d3c877d33c3026c54f5b077742ba1cca (diff)
downloadirssi-a68d8dd5399cf543ce2e29170edc5aa616b1df03.zip
Irssi::format_get_text() didn't work
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2725 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/perl/ui/Formats.xs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/perl/ui/Formats.xs b/src/perl/ui/Formats.xs
index 0ad8c86a..f9cc0200 100644
--- a/src/perl/ui/Formats.xs
+++ b/src/perl/ui/Formats.xs
@@ -11,16 +11,21 @@ format_get_text(window, module, server, target, formatnum, ...)
char *target
int formatnum
PREINIT:
+ TEXT_DEST_REC dest;
+ THEME_REC *theme;
char **charargs;
char *ret;
int n;
PPCODE:
charargs = g_new0(char *, items-5+1);
- charargs[items-5] = NULL;
for (n = 5; n < items; n++) {
charargs[n-5] = (char *)SvPV(ST(n), PL_na);
}
- ret = format_get_text(module, window, server, target, formatnum, charargs);
+
+ format_create_dest(&dest, server, target, 0, window);
+ theme = window_get_theme(dest.window);
+
+ ret = format_get_text_theme_charargs(theme, module, &dest, formatnum, charargs);
g_free(charargs);
XPUSHs(sv_2mortal(new_pv(ret)));