summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-windows.c
AgeCommit message (Collapse)Author
2017-11-30move decls before codeailin-nemui
2016-12-20remove some for loopsailin-nemui
2016-12-20sort windows_seq helpers to topailin-nemui
2016-12-20nitsailin-nemui
2016-12-20clean up window_refnum_{prev,next}ailin-nemui
2016-12-19add some sequence helper functionsailin-nemui
2016-12-13g_sequence backing for window listailin-nemui
2016-01-08option to clear the historyailin-nemui
2014-09-11source cleanup: remove trailing whitespacesMichael Vetter
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-10Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.David Hill
2007-08-04Replace 0 with NULL.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4591 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Oops. Update address correctly now.Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Update FSF addressWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-16revert last change. Already possible with /format -delete daychange (fixed ↵Wouter Coekaerts
in r4428) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4454 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-16Hide daychange.Geert Hauwaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4453 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-25Do not print an empty line for "daychange" if the formatted string is empty.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4428 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-01-30Fix for !channel matching, patch by BorysTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3105 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-28Added time, size and level setting types. Breaks some settings - I'll addTimo Sirainen
automatic converter to these settings later. Meanwhile you CVS users can fix your config files yourself :) Time settings allow using "days", "hours", "minutes", "seconds" and "milliseconds" or several of their abbreviations. For example "5d 4h 5msecs". Size settings allow using "gbytes", "mbytes", "kbytes" and "bytes" or their abbrevations. For example "5MB". Level settings are currently handled pretty much the way they were before. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3080 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-15Try to choose better the window where we print when matching by level andTimo Sirainen
multiple windows have a match. Should fix problems with query windows with a default msgs window + /SET window_check_level_first ON. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3002 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-15when server connection was finished, it didn't move from connect_server toTimo Sirainen
active_server git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2924 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-14window->active_server used to hold non-connected servers, but that wasTimo Sirainen
removed before because it created several problems, especially with scripts. however that change made /server and /disconnect annoying to use with non-connected servers. so, now we have window->connect_server as well. either active_server or connect_server is set, but never both. commands that can deal properly with non-connected servers can now use the connect_server, while everyone else happily thinks that no server is active. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2921 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-04Don't set window's server yet at "server looking" stage, as everything isn'tTimo Sirainen
initialized yet and some things could crash irssi. But this is rather nice feature actually, /disconnect and /server would work nicely before server is even being connected to .. i guess i should figure out a better way to do this, "server init" signal or something. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2835 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-19net_connect*() contains now error parameter, so it can be used to properlyTimo Sirainen
check the errno if connect() fails. Added support for connecting to named UNIX sockets. Some cleanups with session handling / server connecting as well. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2819 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-04window_set_name() - when setting it to "", set it NULL instead.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2752 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-04don't leave active_win corrupted if last window is killed.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2751 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-26/WINDOW GOTO channel|query didn't work if their server was different fromTimo Sirainen
the one in active window. Also removed a kludge of automatically trying to find #-prefixed channels if it wasn't given. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2716 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-12window_change_server() : don't change server if it's being disconnected.Timo Sirainen
fixes a crash with multiple channels being in one windows. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2667 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-14Don't crash when trying to print text when there's no windows yet. AlsoTimo Sirainen
print the text to stdout. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2610 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-22Window level matching code was a bit messy. Also, now the active window isTimo Sirainen
preferred if there's multiple matches by the same level. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2525 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15Added /SET window_check_level_first and /SET window_default_level. This ↵Timo Sirainen
allows you to keep all messages with specific level in it's own window, even if it was supposed to be printed in channel window. patch by mike@po.cs.msu.su git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2452 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10Support for "immortal" windows, that can't be closed until explicitly set toTimo Sirainen
mortal with /WINDOW IMMORTAL OFF. Status and msgs windows are immortal by default. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2422 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-20Some crashfixes with command history.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2277 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-20Added command history groups, set them with /WINDOW HISTORY. Patch by ↵Timo Sirainen
peder@ifi.uio.no git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2276 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25/FORMAT timestamp and /FORMAT day_changed use now strftime()-styleTimo Sirainen
formats for specifying time. %x is still treated as color format, so you'll need to escape them with another % (%%H:%%S). The $ parameters don't work anymore. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2142 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08Fixed leaking window binds. They were added but rarely removed.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1721 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-03Added sticky window information to /WINDOW.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1701 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-27Don't autoclose windows with bound items.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1579 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-17fixed small hilight memory leakTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1404 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03When /SET autoclose_windows is ON, don't destroy windows if they haveTimo Sirainen
some level set (like /join -w + /part in status window) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1327 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03window_set_active() doesn't anymore send "window changed" signal ifTimo Sirainen
window is being set to NULL. Restoring /LAYOUT SAVEd split windows crashed at startup because of this. Maybe it shouldn't change the window to NULL? Well, at least I got it to work at all... :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1322 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-19window_bind_remove_unsticky(): crashfixTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1246 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-10Changed window->waiting_channels ("servertag name" format) toTimo Sirainen
bound_items containing WINDOW_BIND_REC structures. If you now use /SAVEWINDOWS, the item will _always_ be restored to saved window even if there was already some other item. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1204 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-10/WINDOW SERVER: added -sticky and -unsticky options. If window serverTimo Sirainen
is sticky, it will never be automatically changed, and it cannot be changed to anything else without -unsticky option. Should be useful for people who want status or msgs windows for each server. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1196 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-14Check the return value of strftime() properlyTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1113 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-07In core/module-formats.h: IRCTXT_ -> TXT_Timo Sirainen
Added "message irc ctcp" signal to print CTCPs git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1094 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-06Removed window parameter from window_item_remove() andTimo Sirainen
window_item_destroy() git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1079 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01/SET windows_auto_renumber - should window refnums be packed when someTimo Sirainen
window is destroyed git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1047 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01/WINDOW NUMBER: -sticky option added. Closing windows before a stickyTimo Sirainen
window won't change refnum of the sticky window and windows after it git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1046 dbcabf3a-b0e7-0310-adc4-f8d773084564