about summary refs log tree commit diff stats
path: root/src/ui/statusbar.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyrightMichael Vetter2021-01-081-1/+1
|
* Declare counter var inside loopMichael Vetter2020-11-091-8/+4
| | | | We require c99/gnu99 anyways.
* 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 '=='.
* Apply coding styleMichael Vetter2020-07-071-55/+55
|
* Revert "Apply coding style"Michael Vetter2020-07-071-60/+60
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-60/+60
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Remove prefs_free_string()Michael Vetter2020-07-021-7/+7
| | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* Make option to allow hiding windows with no messages in statusbarMichael Vetter2020-05-211-0/+16
| | | | | | | `statusbar.show.read` can be set to false in the config. `/statusbar show|hide read`. Implement https://github.com/profanity-im/profanity/issues/1285
* _destroy_tab() dont set tab to NULLMichael Vetter2020-04-201-1/+0
| | | | | | | Setting the local pointer to NULL has no effect. _destroy_tab() is used for g_hash_table_new_full() so we cant use a ** and set tab to NULL.
* Make statusbar tab more resilientMichael Vetter2020-03-091-4/+8
| | | | | | | | If users input strange stuff and we can't create a jid from it even the setting is set to 'user' we still should fallback to the regular identifer. For example with `/msg @name%matrix.domain.org@matrix.org hi`.
* Update my Copyright to 2020Michael Vetter2020-01-031-1/+1
|
* Call ncurses resize function before move functionMichael Vetter2019-12-021-1/+1
| | | | | | | | | | | | | | From @xaizek s comment on issue #1235: ``` If the move would cause the window to be off the screen, it is an error and the window is not moved. Resize on the other hand doesn't fail like this according to its documentation. So new size needs to be applied first. ``` Big thanks to @xaizek for taking a look at our code and helping us!! Regards https://github.com/profanity-im/profanity/issues/1235
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Add comment about statusbar.currentMichael Vetter2019-09-291-0/+3
|
* Add coloring of statusbar.current tab in viewDaniel Lublin2019-09-241-4/+10
| | | | | | | | | | | | | | This theme color applies to the tab title text of the statusbar tab that is currently shown. The (somewhat confusingly named) `statusbar.active` theme color now applies to all other tabs (before, it applied to all tabs). Coloring of a tab that is highlighted/has new messages is done as before using the `statusbar.new` theme color. The default color is set to `cyan`, and thus causes no visible change for users -- until modified.
* Don't crash if source jid doesn't contain the node partDmitry Podgorny2019-08-261-1/+3
| | | | | | | | Profanity uses the node part of a JID as display name for a tab. If such a JID doesn't contain the node part, Profanity crashes on NULL pointer dereference. In the above case, use barejid which is just a domain. Fixes #1153.
* Remove unused assignmentsMichael Vetter2019-07-221-1/+1
|
* Fix jump depending on uninit. value in statusbarMichael Vetter2019-07-101-1/+1
|
* Fix prefs_get_string mem leaks in statusbarMichael Vetter2019-06-191-6/+18
|
* Add myself to copyrightMichael Vetter2019-06-171-0/+1
| | | | Like discussed with James.
* statusbar: check if roster existsMichael Vetter2019-06-041-2/+4
| | | | | | | | | | | | We destory the roster in ev_disconnect_cleanup(). Adding a function to test if the roster has been destroyed and testing for it in the statusbar. So now when the connection is lost 'Lost connection' is printed in all open windows. We can then reconnect with `/connect accountname`. Should fix https://github.com/profanity-im/profanity/issues/1083
* statusbar: reduce duplicate codeMichael Vetter2019-06-041-32/+9
| | | | | | | | | | status_bar_new() and status_bar_active() are almost identical. Let's use one helper function to not duplicate code. I thought about renaming both functions into one and adding another parameter but didn't come up with a good name for the function that clearly describes what it does. So staying with current names + helper functions.
* Determine chat window names beforehandMichael Vetter2019-06-041-13/+44
| | | | | | | | | Save the name for displaying the windows in the statusbar inside the tab object. So far we calculated them repeatedly and this created issues when we lost the connection. Regards https://github.com/profanity-im/profanity/issues/1083
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|
* Rename mucconf wins into conf winsPaul Fariello2018-09-051-1/+1
| | | | Configuration windows are now being used by both muc and cmd.
* Add max tab length to statusbarJames Booth2018-03-111-30/+46
|
* Fix utf8 chars in statusbarJames Booth2018-03-111-3/+3
|
* Statusbar render at start of small windowJames Booth2018-03-101-0/+3
|
* Dont show extended tabs when max 0James Booth2018-03-101-0/+3
|
* Use jid prefs in statusbarJames Booth2018-03-101-3/+55
|
* WIP add self prefs for statusbarJames Booth2018-03-101-51/+27
|
* Show extended tabsJames Booth2018-03-101-12/+60
|
* Refactor statusbarJames Booth2018-03-101-92/+109
|
* Preference to show/hide tab numberJames Booth2018-03-091-33/+40
|
* Remove empty tabsJames Booth2018-03-091-35/+12
|
* Add preferences for tab displayJames Booth2018-03-091-14/+99
|
* Add max tabs preference for statusbarJames Booth2018-03-081-55/+57
|
* Add prefs for empty tabs and tab namesJames Booth2018-03-081-11/+14
|
* Show name in statusbar tabs WIPJames Booth2018-03-081-349/+184
|
* Add message to status barJames Booth2018-03-071-22/+39
|
* Set background in _status_bar_drawJames Booth2018-03-071-2/+3
|
* Add time to status barJames Booth2018-03-071-4/+49
|
* Draw empty status barJames Booth2018-03-071-356/+381
|
* Update copyrightJames Booth2018-01-211-1/+1
|
* Add theme option for time in a status barLukasz Marcinowski2017-03-221-0/+3
|
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Allow vertical positioning of all windowsJames Booth2016-09-231-18/+8
|
* Add /inputwin top|bottom commandJames Booth2016-09-191-2/+14
| | | | closes #853
* Store GTimeZone in statusbarJames Booth2016-07-251-2/+5
| | | | fixes #785
* Tidy headersJames Booth2016-07-241-1/+1
|