about summary refs log tree commit diff stats
path: root/src/ui/window.c
Commit message (Collapse)AuthorAgeFilesLines
* Move declaration and definition of win_get_last_sent_message to the correct ↵MarcoPolo-PasTonMolo2021-10-221-0/+29
| | | | place
* Format code correctlyMichael Vetter2021-10-051-4/+3
|
* Attention flag - Implemented Alt+mDebXWoody2021-05-291-0/+33
|
* Attention flag for groupchatsDebXWoody2021-05-291-0/+1
| | | | Attention flag for groupchat and display the windows via "/wins attention"
* Attention flag for chat windowsDebXWoody2021-05-291-1/+1
| | | | | | | User is able to toggle a flag for chat windows. This flag should be used to mark the window for "Attention". Use Ctrl+f to mark the window.
* MUC: Show offline members in sidebarThorben Günther2021-03-081-0/+5
|
* Bugfix: Titlebar show name without room nameStefan2021-02-141-1/+1
| | | | | | | Error log: GLib-CRITICAL - g_string_insert_len: assertion 'len == 0 || val != NULL' failed Check if a room name exists, before adding the name into the title bar.
* Update copyrightMichael Vetter2021-01-081-1/+1
|
* Remove blank line after trackbarkaffeekanne2020-12-111-2/+0
| | | | Remove added blank line after trackbar, introduced by 606c1e51e688cb111b9837579a35460508324b63
* Remove old TODOMichael Vetter2020-12-111-1/+0
| | | | | | | | | | | | It was added in f7fe87dd4e7e14112fbcb0ae8794d90ffee64f2f when I rewrote window functions to include more infos (not just char* but whole jid struct I think). The same todo was added to win_print_outgoing_muc() but removed in f3d9de133e90ed10b5b7bd61196619eab1fedb19. This TODO should have been removed in f3d9de133e90ed10b5b7bd61196619eab1fedb19 since there we added the myjid parameter.
* Fix color for win_print_outgoing()Michael Vetter2020-12-111-1/+1
| | | | | | | | | | | | | Discovered by @aba-hollerer. Mistake was introduced in b6b7dd5ad497a71e250b8b3cef0bb987314b141d probably due to a wrong copy/paste. First wasn't reproducible because I had `/receipts request on` and thus win_print_outgoing_receipts() is used which has the correct THEME_TEXT_ME. Fixes https://github.com/profanity-im/profanity/issues/1441
* Remove empty lineMichael Vetter2020-12-101-1/+0
|
* Expand trackbar to whole lineMichael Vetter2020-12-091-1/+1
| | | | Fix https://github.com/profanity-im/profanity/issues/1448
* Run make format on rebaseWilliam Wennerström2020-11-161-1/+1
|
* Add http_download toolWilliam Wennerström2020-11-161-1/+1
|
* Declare counter var inside loopMichael Vetter2020-11-091-8/+6
| | | | We require c99/gnu99 anyways.
* Avoid passing NULL pointers to curses functions.nia2020-09-041-1/+6
| | | | | | | | This allows profanity to work without segfaulting from NULL pointer dereferences when used with NetBSD libcurses. Basic functionality was tested, there may be more NULL pointer issues hiding.
* Basic support for building on NetBSD.nia2020-09-041-0/+2
| | | | | | - Add NetBSD as a recognized platform without -ldl. - Allow building with NetBSD libcurses instead of ncurses. - Portability to NetBSD sh - use POSIX '=' instead of '=='.
* Fix memleak in win_print_outgoing_with_receipt()Michael Vetter2020-07-231-0/+1
| | | | | | We should actually process the receipts also in LMC I think. Regards https://github.com/profanity-im/profanity/issues/805
* Apply coding styleMichael Vetter2020-07-071-347/+345
|
* Revert "Apply coding style"Michael Vetter2020-07-071-350/+352
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-352/+350
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Remove prefs_free_string()Michael Vetter2020-07-021-3/+3
| | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* Initialize is_ox in win_create_chat()Stefan Kropp2020-07-011-0/+1
| | | | Fixes an issue where messages are displayed as OX when they are not.
* Feature request - XEP-0373: OpenPGP for XMPP (OX)DebXWoody2020-06-291-0/+2
| | | | | | | | | Basic implementation of XEP-0373: OpenPGP for XMPP. https://xmpp.org/extensions/xep-0373.html Command /ox Issue: #1331
* Remove unanimous MAM displayMichael Vetter2020-04-251-18/+8
| | | | | | For some time users could choose to have the old way "unanimous" where all the MUC history is just grey (or whatever was set). Now it is always just displayed like regular new incoming MUC text.
* ui: fix conditionDmitry Podgorny2020-04-231-0/+3
| | | | | Fix mistake in a condition. Also add sanity check to win_refresh_with_subwin().
* Make compiler happy about win_refresh_without_subwinMichael Vetter2020-04-201-1/+1
|
* win_refresh_with_subwin() fixupMichael Vetter2020-04-201-2/+1
| | | | Fixup for 86af6925d9fc0b2656eac15b0c8c7aba60589ce5
* Simplify win_refresh_with_subwin()Michael Vetter2020-04-201-6/+5
|
* Add to_jid field to ProfMessage structMichael Vetter2020-04-111-8/+8
| | | | | Is usefult in many cases if we want cleaner code. Hope this edit didn't break anything though ;-)
* Retrieve message type from databaseMichael Vetter2020-04-081-3/+2
| | | | So we don't have to check for MUC another way.
* win_print_history() print 'me' on regular chats if we wrote the messageMichael Vetter2020-04-061-1/+9
| | | | Same behaviour like when we used to get it from the text files.
* Adapt win_print_history() to work with muc tooMichael Vetter2020-04-061-5/+23
|
* Fixed memory leak in ProfMucWinDmitry Podgorny2020-04-031-0/+2
| | | | | Profanity remembers last message and its id for the message correction feature. We must free them in window destructor.
* Add setting to not colorize own nick according to xep-0392Michael Vetter2020-03-251-1/+3
| | | | | | | | | | | | | | | | | | Some users might want there nick to always stay white (etc) for easier recognition. Now we can do `/color own off` to not generate the color based on xep-0392. The `me=` color (etc) from the theme will then be used. Once we run this command `theme_load()` is called again. And the theme looks totally wrong. We encountered this at other times already and I think it's nothing wrong with this new code here now but that there seems to be a missing closing attr for the color when drawing. Should be investigated seperately. Fix https://github.com/profanity-im/profanity/issues/1288
* titlebar: allow displaying MUC name and MUC jidMichael Vetter2020-03-241-7/+14
| | | | | | `/titlebar use name|jid` -> `/titlebar show|hide name|jid` Fix https://github.com/profanity-im/profanity/issues/1284
* move titlebar code in correct functionMichael Vetter2020-03-241-1/+9
|
* Rename ProfBufferEntry jid variableMichael Vetter2020-03-091-3/+3
|
* Check for sender of LMC messageMichael Vetter2020-03-091-11/+17
|
* Write from jid in bufferMichael Vetter2020-03-091-10/+13
| | | | Not all cases covered yet.
* Add barejid to buffer structMichael Vetter2020-03-091-11/+11
|
* Remove old commentsMichael Vetter2020-03-091-4/+0
|
* Use correct MUC message timestampMichael Vetter2020-03-091-5/+1
| | | | | | | | win_println_incoming_muc_msg() always used the current time. Now let's use whatever is sent int he message struct (from the delay stanza or the current time that we set now once the message is received). No playing with the time upon display anymore.
* Use ProfMessage as parameter for win_println_incoming_muc_msg()Michael Vetter2020-03-091-5/+4
|
* window.c: Rename variableMichael Vetter2020-03-091-3/+3
|
* Fix memory leak in win_create_muc()Michael Vetter2020-02-271-1/+0
| | | | | | | | | | | | | I suspect this was just a copy paste error. `_win_create_simple_layout()` is called in other creation functions like `win_create_config()` or `win_create_private()`. I suspect when `win_create_muc()` was created it was just copied. But in this function we actually set the layout ourself later. So calling the function isn't needed. Regards https://github.com/profanity-im/profanity/issues/1279
* Only use enc_char in win_print_incoming() when neededMichael Vetter2020-02-251-1/+4
| | | | Fixes potential memory leak too.
* Rename separator to trackbarMichael Vetter2020-02-211-4/+4
|
* Make trackbar color configurableMichael Vetter2020-02-211-0/+6
| | | | Use `main.trackbar` in themes.