about summary refs log tree commit diff stats
path: root/src/ui
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove empty lineMichael Vetter2020-12-101-1/+0
|
* Remove not needed initialization in chatwin_new()Michael Vetter2020-12-101-4/+0
| | | | | | | | | | | | | | 00dbc1ba7c66c3bb6898aed26922bf5295768bb1 attempted to fix https://github.com/profanity-im/profanity/issues/1449. Here we revert the part about initializing is_omemo in chatwin_new() since this is done in win_create_chat() already. The actual mistake was the wrong cast of the muc window which is fixed by the same commit. The mistake was introduced in in 3370418d71de255c832da97113543e554ec0e86b. While being at it we also remove the is_ox initialization since this is handled in win_create_chat()/win_create_muc() too.
* Fix various typosMichael Vetter2020-12-103-6/+6
|
* Cast chat/muc window to correct type and refactor cmd_sendfileWilliam Wennerström2020-12-091-0/+2
| | | | Fixes #1449
* Simplify notify()Michael Vetter2020-12-091-2/+2
|
* Expand trackbar to whole lineMichael Vetter2020-12-091-1/+1
| | | | Fix https://github.com/profanity-im/profanity/issues/1448
* Remove scheme and filetype matching for url (save|open)William Wennerström2020-12-081-3/+6
|
* Fix segfault for urlopen[1]William Wennerström2020-12-071-1/+1
|
* Fix bad order of parameters for url saveWilliam Wennerström2020-12-071-1/+1
|
* Refactor for threaded external executable for built-in download methodsWilliam Wennerström2020-12-031-2/+2
|
* Run make format on rebaseWilliam Wennerström2020-11-163-3/+3
|
* Add http_download toolWilliam Wennerström2020-11-162-2/+2
|
* Remove /omemo sendfileWilliam Wennerström2020-11-161-7/+1
|
* Declare counter var inside loopMichael Vetter2020-11-095-24/+14
| | | | We require c99/gnu99 anyways.
* Since the string from strerror should never be modified, use const.Philipp Klaus Krause2020-10-141-1/+1
|
* Fix use-after-free which is introduced in cons_alert()Dmitry Podgorny2020-10-091-1/+1
| | | | | | Commit f12161f fixes memory leak, but introduces use-after-free issue. Allocate new memory for win_name with g_strdup() since it is freed with g_free() later.
* Fix memleak in cons_alert()Michael Vetter2020-10-071-0/+2
| | | | Close https://github.com/profanity-im/profanity/issues/1427
* Avoid passing NULL pointers to curses functions.nia2020-09-043-9/+23
| | | | | | | | 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-049-0/+18
| | | | | | - 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
* Setting: only write in console upon muc mentionMichael Vetter2020-07-101-0/+5
| | | | | | `/console muc mention` additionally to `first|none|all`. Fix https://github.com/profanity-im/profanity/issues/1371
* Pass window to functions so we dont have to call twiceMichael Vetter2020-07-094-17/+16
|
* Dont hilight console once all messages have been readMichael Vetter2020-07-095-48/+108
| | | | | | | | | | | | | | | | If we receive a message we get: << room message: eagle@conference.anoxinon.me (win 2) Same for private chats and regular chats. And several other kinds of notifications. If we only receive notifications from a chat window it would be nice to also clear the hilight on the console window since we already catched up by reading the actual message in the chat window. Probably not the best description :-) I hope you get it.. Regards https://github.com/profanity-im/profanity/issues/1399
* Make _show_roster_contacts staticMichael Vetter2020-07-091-2/+2
|
* Apply coding styleMichael Vetter2020-07-0724-2135/+2135
|
* Revert "Apply coding style"Michael Vetter2020-07-0724-2213/+2214
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-0724-2214/+2213
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Remove prefs_free_string()Michael Vetter2020-07-025-80/+80
| | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* Merge pull request #1374 from profanity-im/revampUrlopenMichael Vetter2020-07-022-5/+11
|\ | | | | Rework /url and /executable for filetypes
| * Add note that /executable needs more workMichael Vetter2020-07-021-0/+2
| |
| * cmd_url_*(): use gchar instead of charMichael Vetter2020-07-021-1/+1
| |
| * Adjust `/executable` test to be more preciseMichael Vetter2020-07-011-1/+1
| |
| * console.c: Use prefs_free_string()Michael Vetter2020-07-011-1/+1
| | | | | | | | | | f9961677aaa8d2713a80127f95a3770b33af4cef replaces prefs_free_string() with g_free(). Both is correct but lets still use this.
| * Display default value for /url associated commandsPierre Mazière2020-06-251-5/+9
| | | | | | | | | | | | | | | | | | | | The display of commands associated with specific file types and protocols will need to be implemented later, but this requires to use private data of the GKeyFile structure, which can be a maintainability issue on the long term. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * Add aesgcm to urls grabberPierre Mazière2020-06-251-1/+1
| | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* | 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-295-0/+25
|/ | | | | | | | | Basic implementation of XEP-0373: OpenPGP for XMPP. https://xmpp.org/extensions/xep-0373.html Command /ox Issue: #1331
* Fix gcc warnings for cygwinDmitry Podgorny2020-06-241-3/+4
| | | | | | | | | | | | | strncpy(3) is not so safe function and can lead to mistakes. For example, strncpy(dest, "Profanity", 10); is redundant and leads to problems when someone changes the source string. Different example is when 3rd argument equals to length of the destination buffer. strncpy(3) doesn't terminate string with '\0' when it truncates. Therefore, the destination string becomes corrupted. Zeroize storage for 'nid', so the last byte remains '\0' in case of truncate.
* Define POSIX macro to have strdupMichael Vetter2020-06-122-4/+6
| | | | | | | | | | | | | | https://github.com/profanity-im/profanity/commit/98c38dc6d6d29333c63f80327774f094610d8602 sets C99 as standard. strdup() is not part of C99. For now set `-D_POSIX_C_SOURCE=200809L` macro to have strdup() in C99. Using `gnu99` instead would be another option. We should take more care to use glib functions whenever possible. Regards https://github.com/profanity-im/profanity/issues/1357
* Add option for legacy authenticationDmitry Podgorny2020-06-051-0/+3
| | | | | | | | New options: /connect <account> [auth default|legacy] /account <account> set auth default|legacy Fixes #1236.
* urlopen: get last URL firstMichael Vetter2020-05-291-2/+2
| | | | Fix https://github.com/profanity-im/profanity/issues/1348
* Fix titlebar write positionMichael Vetter2020-05-271-4/+35
| | | | | | | | Mistake introduced in 86f0e0ea7033a27a83a5c24091ae1fd5b579296d The functions later on dont set an explitic position when writing their strings. Fix https://github.com/profanity-im/profanity/issues/1346
* Handle listing ignored bookmarks when none are ignoredMichael Vetter2020-05-251-0/+6
|
* Add and use connection_get_barejid()Michael Vetter2020-05-251-3/+3
| | | | Instead of connection_get_fulljid() and then creating a Jid from it.
* List ignored bookmarksMichael Vetter2020-05-242-0/+16
| | | | | | `/bookmarl ignore` lists the ignored bookmarks. Regards https://github.com/profanity-im/profanity/issues/1115
* Fix invalid read in titlebarMichael Vetter2020-05-241-1/+2
|
* Dont show resource in titlebar if it is too longMichael Vetter2020-05-221-9/+20
| | | | Fix https://github.com/profanity-im/profanity/issues/715
* Display bookmark nameMichael Vetter2020-05-221-1/+5
| | | | | | Have field in struct and display the name in `/bookmark list`. Regards https://github.com/profanity-im/profanity/issues/697
* Make option to allow hiding windows with no messages in statusbarMichael Vetter2020-05-212-11/+33
| | | | | | | `statusbar.show.read` can be set to false in the config. `/statusbar show|hide read`. Implement https://github.com/profanity-im/profanity/issues/1285
* Make 'scrolled' themeableMichael Vetter2020-05-212-0/+5
|