From a68d8dd5399cf543ce2e29170edc5aa616b1df03 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 27 Apr 2002 18:41:59 +0000 Subject: Irssi::format_get_text() didn't work git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2725 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/perl/ui/Formats.xs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/perl/ui') 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))); -- cgit v1.2.3