summaryrefslogtreecommitdiff
path: root/src/perl/ui/Themes.xs
AgeCommit message (Collapse)Author
2014-06-30Finish 256 colour support for IrssiAilin Nemui
256 colour patch is cleaned up and the remaining cases are made work, this includes especially Theme support, which was not implemented before. Changes not related to colours were reverted again, making a review of the two patches against master easier to follow. As a byproduct of the Hex-colour code parser, the 24bit colours are also implemented. Actually using them in the terminal is guarded by a compile time switch (as well as a run time switch), as it breaks the existing colour protocol and requires additional storage. To make a seamless usage, down-conversion is provided for 8 and 16 colours. Diverging from Tom's approach, the colour protocol is reverted back to the original one. Unfortunately, the changes required in the Theme engine will break the API. For more details, please refer to the patch documentation at either http://irssi-docs.wikispaces.com/Notes-256-Colour or https://github.com/shabble/irssi-docs/wiki/Notes-256-Colour
2014-06-27Merge pull request #59 from ailin-nemui/perl-pl-naAlexander Færøy
get rid of PL_na
2014-06-24Define PERL_NO_GET_CONTEXT in all perl source filesDavid Leadbeater
This removes the calls to Perl_get_context() that get automatically added to XS code for ancient source code compatibility reasons. The result is about a ~60K size reduction in the binary (based on comparing two 64-bit stripped irssi binaries compiled --with-perl-staticlib).
2014-06-24get rid of PL_naLukas Mai
2014-06-10Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.David Hill
2012-06-24Properly validate the argument of Irssi::theme_register as an array reference,Emanuele Giaquinta
patch by Olof Johansson. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5214 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-10Factor out printformat_module_dest_charargs function fromEmanuele Giaquinta
printformat_module_dest_args and use it in printformat_perl to remove code duplication. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4979 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-08Make some functions static.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4956 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-01-07didn't compile with older perls.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3093 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-28Added support to define new default abstracts at runtime.Timo Sirainen
Irssi::abstracts_register([key => value, ...]); git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3079 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-16Better !channel support - window items now have "visual_name" and channelsTimo Sirainen
and queries also have "name". Normally they're identical but with !channels the visible_name contains the short !channel name, while name contains full !ABCDEchannel name. The visible_name should be used whenever displaying the channel name, or as printtext()'s target. So, this breaks a few scripts in !channels, they need to be modified to use $channel->{visible_name} instead. Also /LAYOUT SAVE should finally work properly with !channels. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2797 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-13fixesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2791 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-27Irssi::Theme::get_format() now uses format tag instead of number.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2727 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-27added Irssi::Theme::get_format()Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2726 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27Scripts using Irssi::printformat() might have crashed irssi, especially ifTimo Sirainen
they cought in autolog. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2349 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-11I always forget Perl 5.004 doesn't have PL_na .. so, now I've declared forTimo Sirainen
5.004, and changed all STRLEN n_a code to use PL_na instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2238 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-27max number of parameters for printformat() was calculated wrong.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2158 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25printformat_perl() crashfix was buggy :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2151 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25Irssi::printformat() doesn't crash anymore if you try to use unregisteredTimo Sirainen
format. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2143 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-24Irssi::printformat() crashed if the registered format contained $0- etc.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2137 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-17Didn't I already commit these? .. added format_get_text(),Timo Sirainen
gui_printtext_after(), last_line_insert() and fixed a few memleaks. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2040 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14typofixTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2001 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25Added flags option for Irssi::UI::Theme::format_expand().Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1921 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25Added Irssi::current_theme() and Irssi::Theme::format_expand()Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1918 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21Moved theme registering stuff to Themes.xs. Corrected signal "scriptTimo Sirainen
destroy" -> "script destroyed" - unregistering themes works now properly. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1886 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20Dependencies finally work correctly in perl libraries (they're each compiledTimo Sirainen
separately now). Added statusbar code to available to perl, it's now possible to create new statusbar items with perl scripts. statusbar_items_redraw(char *name) can now be used to easily redraw all named statusbar items in screen. Probably several other changes I've already forgotten :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1861 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-27Moved fe_perl module to use Irssi::UI .. this breaks several scripts thatTimo Sirainen
use UI-specific code, but simply adding the "use Irssi::UI;" after use Irssi; should work. make install now removes libfe_perl.* files from global module directory, but if you have it somewhere else you should manually remove it. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1582 dbcabf3a-b0e7-0310-adc4-f8d773084564