Commit Graph

1230 Commits

Author SHA1 Message Date
Philipp Hörist a269f706bd Remove unused shortcut 2018-11-03 14:00:58 +01:00
Philipp Hörist d4986e22bf Remove dead servers from servers list
All removed servers did not answer to a IBR request
2018-11-03 13:58:14 +01:00
Philipp Hörist 7e3d3f95bf Use json format for the servers list 2018-11-03 13:57:50 +01:00
Philipp Hörist 12cd2852de Remove print statement 2018-11-03 13:56:42 +01:00
Philipp Hörist 7121dfbbe0 Fix error with some foreign keyboard layouts 2018-11-03 13:55:50 +01:00
Matthew W. S. Bell 698ae2a31e Obtain sleep inhibitor again after every sleep
- There is a PrepareForSleep signal before and after every sleep event.
The expectation is that before sleep, gajim cleans up and then releases
the sleep inhibitor. Accordingly, we must reacquire the inhibitor after
sleeping, which can helpfully be done with the other signal.

- Moved module to the dbus folder

- Embed logic in a LogindListener object so we can import the module
without listening to dbus
2018-10-26 17:17:57 +02:00
Philipp Hörist 7bb4d07d2e Fix import 2018-10-26 17:17:57 +02:00
Philipp Hörist bc97f6a941 Guard GeoClue import
- So we dont have to check on module import if GeoClue is installed
2018-10-26 17:17:57 +02:00
Philipp Hörist b80afa7179 Fix imports 2018-10-26 17:17:57 +02:00
Philipp Hörist cfd24b6d6c Move dbus modules into own folder
- light refactor of the screensaver module
2018-10-26 17:17:57 +02:00
Philipp Hörist 383e220e69 Dont use deprecated const 2018-10-26 17:17:56 +02:00
Philipp Hörist a7624b564f Fix error when plugin cant be loaded
Fixes #9403
2018-10-26 00:23:13 +02:00
Philipp Hörist 3db2138e34 Make var global 2018-10-22 19:09:13 +02:00
Yann Leboulanger ba82ab9d98 fix regression from [e265514d]: gupnp object is keept globally. Fixes #9398 2018-10-22 19:09:13 +02:00
Daniel Brötzmann ee7db4f7de Remove ESessions leftovers 2018-10-22 19:09:13 +02:00
Philipp Hörist 117be4878c Fix flickering tooltips in 3.24.1 2018-10-22 19:09:13 +02:00
Philipp Hörist 5568b97063 Fix missing declaration
Fixes #9322
2018-10-22 19:09:12 +02:00
Philipp Hörist 186626ad77 Use parse_delay also for presences 2018-10-22 19:09:12 +02:00
Philipp Hörist defdb8888c Remove support for XEP-0091 2018-10-22 19:09:12 +02:00
Philipp Hörist 2002c3cf74 Use parse_datetime for parsing idle time
Fixes #9393
2018-10-22 19:09:12 +02:00
Philipp Hörist b9e02f200c DiscoveryWindow: Add default identity
Fixes #9386
2018-10-22 19:09:12 +02:00
Philipp Hörist f51c6f6b18 Make bookmark parsing more resilient
Fixes #9385
2018-10-22 19:09:12 +02:00
Philipp Hörist 479bfa56cb Set password correctly on MUC join 2018-10-14 21:47:42 +02:00
Philipp Hörist 895a7a8741 Add a dedicated folder for plugin data 2018-10-14 21:47:42 +02:00
Philipp Hörist 889fa149b3 Default to showing offline contacts
Many messengers dont show the status anymore, its not evident to new
users that most of their roster is hidden per default and they have to
show it to access the contacts
2018-10-14 21:47:42 +02:00
Philipp Hörist e3bf54498c Raise Gajim version 2018-10-13 14:16:00 +02:00
Philipp Hörist ec05b1a47e Catch exceptions when loading plugins 2018-10-13 14:14:28 +02:00
Philipp Hörist aff0dbe928 Bind textdomain also for plugins 2018-10-13 13:32:14 +02:00
Philipp Hörist 0f0c0a6ab7 Allow to load multiple widgets with get_builder() 2018-10-13 13:31:48 +02:00
Philipp Hörist cc62761da3 Add get_builder() for plugins 2018-10-13 13:31:10 +02:00
Yann Leboulanger 83c737312b Ability to update plugins on startup from a download folder 2018-10-13 13:31:00 +02:00
André Apitzsch 90a44f61e9 Fix missing UI translations on flatpak 2018-10-12 00:02:37 +02:00
Philipp Hörist 369abc25f0 Reset chatstate correctly if contact goes offline 2018-10-11 20:01:49 +02:00
Philipp Hörist 796da7b2dc Dont overwrite user plugins with base plugins
- Dont load plugins without short_name
- Check with the short_name if a plugin is already loaded
2018-10-11 20:01:49 +02:00
Daniel Brötzmann 85e8867aba polish-change-status-dialog 2018-10-11 20:01:49 +02:00
Philipp Hörist 59a5f20ae0 Fix a few things regarding chatstates
- Fix wrong chatstates issued because of textview changed signal
- Fix chatstates in PMs
2018-10-11 20:01:49 +02:00
Philipp Hörist e3cf8c00c5 Add property to distinguish pm contacts 2018-10-11 20:01:49 +02:00
Philipp Hörist a6db988e11 Raise min nbxmpp version 2018-10-11 20:01:48 +02:00
Philipp Hörist 7ef05d5d76 GajimRemote: pass combined chatstate 2018-10-11 20:01:48 +02:00
Philipp Hörist 306a7c4b4c Better fix for aa50da05 2018-10-11 20:01:48 +02:00
Philipp Hörist c2012d6394 GajimRemote: Fix chatstate-received callback 2018-10-11 20:01:48 +02:00
Philipp Hörist 488f3c55aa Fix gettext not supporting Pathlib yet 2018-10-11 20:01:48 +02:00
Philipp Hörist a04637105d Bring back lost --version command 2018-10-07 02:05:07 +02:00
Philipp Hörist 0c1a271e7a Dont show joined message on status change 2018-10-07 00:47:01 +02:00
Philipp Hörist 8f89f039d3 Fix pylint error 2018-10-07 00:47:01 +02:00
Philipp Hörist 9c8a47aa6b Fix missing imports 2018-10-07 00:47:01 +02:00
Philipp Hörist bd2a3a0e17 Improve finding locale dir
- Dont install _() globally, although its elegant mypy cant deal with it
- If gettext cant find the translation itself, iter through all dirs and search for it
2018-10-07 00:47:00 +02:00
Philipp Hörist f197358e2f Import _() instead of using builtin namespace
- Prepare for removing the global installed _() method in builtins
- Sort some imports along the way
2018-10-07 00:47:00 +02:00
Philipp Hörist 8ace1f2b2b MUC: Add option for showing the subject on join 2018-10-07 00:47:00 +02:00
Philipp Hörist ae629d821a MUC: Show info message that we joined the room 2018-10-07 00:46:59 +02:00
Philipp Hörist fc5e2d3a75 MUC: Show timestamp also for info messages 2018-10-07 00:46:59 +02:00
Philipp Hörist 31b054723e Fix textview sorting 2018-10-07 00:46:59 +02:00
Philipp Hörist ec839cc1d4 Dont show MUC subject on rejoin
- We only show it, if it changed
2018-10-07 00:46:59 +02:00
Philipp Hörist 8bab5d1adc Better determine when we fully joined a muc 2018-10-07 00:46:59 +02:00
Philipp Hörist 33a62760fe MUC: Make print_status affect the 333 status code 2018-10-07 00:46:59 +02:00
Philipp Hörist 048224d5b6 Fix resume after sm timeout
Fixes #9364
2018-10-07 00:46:59 +02:00
Philipp Hörist 12c46fd09b Dont return None on has_mam()
Fixes #9368
2018-10-07 00:46:59 +02:00
Philipp Hörist d35a9f6a10 Add a configurable threshold for MAM in MUC 2018-10-07 00:46:58 +02:00
Philipp Hörist 7ece7dbaff Pull correct security catalog for private messages 2018-10-07 00:46:58 +02:00
Philipp Hörist 14bad789d6 Add debug commandline options
To easier simulate connectivity loss
2018-10-07 00:46:58 +02:00
Philipp Hörist 65f74e3d9f MUC: Set active chatstate on messages 2018-10-07 00:46:58 +02:00
Philipp Hörist ba44f98d97 Fix the fix 2018-10-07 00:46:58 +02:00
Marcin Mielniczuk 9328475c22 Pylint CI improvements
* Move the pylint CI configuration to a separate script
* Update pylint in CI to 2.1.1
* Add pycurl to pylint whitelist
2018-10-07 00:46:58 +02:00
Philipp Hörist 38ac6a0637 Pass correct show state 2018-10-07 00:46:58 +02:00
Philipp Hörist 6cd619675f Fix passing wrong type 2018-10-07 00:46:58 +02:00
Philipp Hörist cbce361f12 Fix wrong argument 2018-10-07 00:46:57 +02:00
Philipp Hörist 50c670e61b Refactor Chat State Notifications
- Move code into chatstate module
- Refactor most of the code, make it much simpler
2018-10-07 00:46:57 +02:00
Philipp Hörist 622d44b202 Fix typo 2018-10-07 00:46:57 +02:00
Daniel Brötzmann a9af4518a5 Fix more strings from #7470 2018-10-07 00:46:57 +02:00
Daniel Brötzmann fcc2e3a8cf Fix #9045, desync'ed 2018-10-07 00:46:57 +02:00
Daniel Brötzmann 0af65954be Unify Emoticon and Emoji strings 2018-10-07 00:46:57 +02:00
Philipp Hörist db34877191 MAM: Up the requested page size 2018-10-07 00:46:56 +02:00
Philipp Hörist 5e6320d2ae Remove unused import 2018-10-07 00:46:56 +02:00
Philipp Hörist dd3bbf2bb7 Request security catalog from the barejid
- Some Code/UI cleanup
2018-10-07 00:46:56 +02:00
Philipp Hörist e292b78a5d Fix security labels 2018-10-07 00:46:56 +02:00
Philipp Hörist 2cf0fb2eef Fix mnemonics and change some strings 2018-10-07 00:46:56 +02:00
Philipp Hörist 13473c36ba Preferences: Update layout and some options
- Add a 'convert ascii emoji' checkbutton
- Remove 'Disabled' from Emoji theme
- Change the layout of the style tab
2018-10-07 00:46:56 +02:00
Philipp Hörist 8f97dd9b89 Move AccountsWindow to gtk module 2018-10-07 00:46:55 +02:00
Philipp Hörist 74c8c24827 Move AdvancedConfig to gtk module 2018-10-07 00:46:55 +02:00
Philipp Hörist cb1be1621d Fix Dark Theme switch
- Move css_config to gtk module
- Add Combobox for overriding the current session setting
- Move theme methods to css_config
2018-10-07 00:46:55 +02:00
Philipp Hörist ec76d8ac3b Only use absolute imports from gtk module
- This reduces import cycles
2018-10-07 00:46:55 +02:00
Philipp Hörist 8e28ca08d4 GroupchatControl: Add a is_connected property 2018-10-07 00:46:54 +02:00
Philipp Hörist 7c45943d20 Check if path is None 2018-10-07 00:46:54 +02:00
Yann Leboulanger 45e03c2545 fix displaying HTML content. Fixes #9210 2018-10-07 00:46:54 +02:00
Yann Leboulanger 3ab7f92856 handle error message from MUC correctly. Fixes #9280 2018-10-07 00:46:54 +02:00
Philipp Hörist 110f742e8a Add annotations 2018-10-07 00:46:54 +02:00
Philipp Hörist bf53613433 Add dark theme switch in preferences 2018-10-07 00:46:54 +02:00
Philipp Hörist ad5f59ba49 configpaths: Add get_plugin_dirs() method
This helps with mypy because otherwise get() has multiple return types

This reduces our usage of cast()
2018-10-07 00:46:54 +02:00
Philipp Hörist 5db0178a15 Windows: Add debug logging switch in preferences
If debug logging is enabled verbose output is redirected to a file
in the user dir
2018-10-07 00:46:54 +02:00
Philipp Hörist 3bdcd53ff5 Dont parse our own nick on sent carbons
Fixes #9051
2018-10-07 00:46:53 +02:00
Philipp Hörist d295472a8e Refactor link context menu
- Move hyperlink handling into HtmlTextView
- Use actions on the menuitems
2018-10-07 00:46:53 +02:00
Philipp Hörist edaa4988f0 Dont show encryption status for status messages
Fixes #9353
2018-10-07 00:46:53 +02:00
Philipp Hörist 9bbc2eceb3 Fix rest of mypy errors
- This allows us to run mypy on the full gajim folder
2018-10-07 00:46:53 +02:00
Philipp Hörist fafef38f2c Fix pylint errors in ipython_view 2018-10-07 00:46:52 +02:00
Philipp Hörist 1ca131cdf1 Add __init__.py to gajim/dev 2018-10-07 00:46:52 +02:00
Philipp Hörist eb8093d25f Add annotations
- Remove some unused vars from app
2018-10-07 00:46:52 +02:00
Philipp Hörist 95bd86320b Add annotations
- Add a gtk/types modules
- Add a gtk/const module to prevent circular imports
2018-10-07 00:46:52 +02:00
Philipp Hörist 4aca59051f Extend stubs for emoji_data 2018-10-07 00:46:52 +02:00
Philipp Hörist ab15537cda Add license header to emoji_data.py 2018-10-07 00:46:52 +02:00
Philipp Hörist fb42136be1 Move HtmlTextView test into test folder 2018-10-07 00:46:52 +02:00
Philipp Hörist bb36078ee9 remove icon 2018-10-07 00:46:51 +02:00
Philipp Hörist 1956885ae7 Fix colors and icons 2018-10-07 00:46:51 +02:00
Philipp Hörist 30442be2a6 ConvTextview: Rework display of encryption 2018-10-07 00:46:51 +02:00
Philipp Hörist fa45935c11 Make SQL INSERT querys more resilient
Specify the column in which we insert otherwise downgrading Gajim is
not possible anymore because the query breaks if we modified the column
count in future
2018-10-07 00:46:51 +02:00
André Apitzsch 0d858180df Remote control: Better handle unknown types
there is no corresponding GLib.Variant for None,
use conversion to string as workaround
2018-10-07 00:46:51 +02:00
Philipp Hörist b05dc5c081 Fix undefined-loop-variable pylint error 2018-10-07 00:46:51 +02:00
Philipp Hörist 4c38a309fc Fix pylint errors
- deprecated-method
- anomalous-backslash-in-string
- cell-var-from-loop
- undefined-loop-variable
2018-10-07 00:46:51 +02:00
Philipp Hörist 16f7620204 pylint W0143 is not available on pylint < 2.0 2018-10-07 00:46:50 +02:00
Philipp Hörist 60173c06db Fix pylint errors
- duplicate-key
- eval-used
- comparison-with-callable
2018-10-07 00:46:50 +02:00
Philipp Hörist 64487929a6 Fix pylint errors
- pointless-statement
- pointless-string-statement
- unnecessary-lambda
2018-10-07 00:46:50 +02:00
Philipp Hörist 08cfe09ae4 Fix pylint errors
- used-before-assignment
- misplaced-bare-raise
2018-10-07 00:46:50 +02:00
Philipp Hörist f163d90a44 Dont move window between virtual desktops
Its the job of the window manager to restore a window to the correct
location
2018-10-07 00:46:50 +02:00
Philipp Hörist d37a93ff60 Fix unneeded-not pylint errors 2018-10-07 00:46:49 +02:00
Philipp Hörist e89dfccf73 Fix pylint errors
- bad-mcs-method-argument
- trailing-newlines
- no-self-argument
2018-10-07 00:46:49 +02:00
Philipp Hörist 99efc4a9b4 Fix pylint errors
- consider-using-enumerate
- unneeded-not
- unidiomatic-typecheck
2018-10-07 00:46:49 +02:00
Philipp Hörist 7a96e6a4e4 Fix consider-using-in pylint errors 2018-10-07 00:46:49 +02:00
Philipp Hörist 20c5af5deb Fix useless-super-delegation pylint errors 2018-10-07 00:46:49 +02:00
Philipp Hörist 9baf4666b8 Fix unnecessary-pass pylint errors 2018-10-07 00:46:49 +02:00
Philipp Hörist c156f02cc0 Fix redefined-builtin pylint errors 2018-10-07 00:46:48 +02:00
Philipp Hörist f12dfb811d Fix trailing-whitespace pylint errors 2018-10-07 00:46:48 +02:00
Philipp Hörist e842298724 Fix bad-whitespace pylint errors 2018-10-07 00:46:48 +02:00
Philipp Hörist a65d88c1cd Fix multiple-statements pylint errors 2018-10-07 00:46:47 +02:00
Philipp Hörist 5d1de209a8 Fix singleton-comparison pylint errors 2018-10-07 00:46:47 +02:00
Philipp Hörist dad5331bf2 Fix no-else-return pylint errors 2018-10-07 00:46:46 +02:00
Philipp Hörist b9edcceb4c Fix redefined-argument-from-local pylint errors 2018-10-07 00:46:45 +02:00
Philipp Hörist c5ca89558d keys() doesnt return list() in python3 2018-10-07 00:46:45 +02:00
Philipp Hörist bc70b24d80 Fix trailing-comma-tuple pylint errors 2018-10-07 00:46:45 +02:00
Philipp Hörist acb0bacc09 Fix simplifiable-if-statement pylint errors 2018-10-07 00:46:45 +02:00
Philipp Hörist defe74cc06 Fix literal-comparison pylint errors 2018-10-07 00:46:45 +02:00
Philipp Hörist 4fb78dfbfa Use keys() iteration if we modify the dict 2018-10-07 00:46:44 +02:00
Philipp Hörist c4bd6d6ab2 Fix consider-iterating-dictionary pylint errors 2018-10-07 00:46:44 +02:00
Philipp Hörist 407dc04b28 Fix pylint errors 2018-10-07 00:46:44 +02:00
Philipp Hörist cebd83d436 Fix unused-variable pylint errors 2018-10-07 00:46:44 +02:00
Philipp Hörist 6305fc69b9 Fix logging-not-lazy pylint errors 2018-10-07 00:46:43 +02:00
Philipp Hörist 5ff08236bb Fix bare-except pylint errors 2018-10-07 00:46:42 +02:00
Philipp Hörist 1c7f347a08 Fix missing time attribute
This was removed by accident
2018-10-07 00:46:42 +02:00
Philipp Hörist eb6f5761ec Fix redefined-outer-name pylint errors 2018-10-07 00:46:42 +02:00
Philipp Hörist a6525e19a2 Fix superfluous-parens pylint errors 2018-10-07 00:46:41 +02:00
Philipp Hörist 54776f5877 Fix evaluation for subject change 2018-10-07 00:46:41 +02:00
Philipp Hörist 0b5c8a3b46 Dont retract pep items on UserXEPs
This leads to multiple problems

1. We cant assume only items with id='current' are stored in the node
which would lead to retracting 'current' but another item would become
the last published and sent to users

2. Even if we have a SingletonNode retracting the only item means the Node
would be empty and offline clients would not receive the last published item
on coming online, because there is no item anymore

Instead we always publish an empty item from now on
2018-10-07 00:46:41 +02:00
Philipp Hörist f00d8087ad Fix sending empty pep data 2018-10-07 00:46:41 +02:00
Philipp Hörist 7cf53e901b Fix useless-object-inheritance pylint errors 2018-10-07 00:46:40 +02:00
Philipp Hörist d011be2d89 Fix unsued-import pylint errors 2018-10-07 00:46:40 +02:00
Philipp Hörist 4cf7d20600 Fix len-as-condition pylint error 2018-10-07 00:46:40 +02:00
Philipp Hörist a3c687dae1 Fix len-as-condition pylint errors 2018-10-07 00:46:39 +02:00
Philipp Hörist e953820ff8 Zeroconf: Store time of outgoing messages 2018-10-07 00:46:39 +02:00
Philipp Hörist e3be3af76e HistoryManager: Load css config in standalone 2018-10-07 00:46:39 +02:00
Philipp Hörist 77c9b3a98d Add annotations and fix pylint/mypy errors 2018-10-07 00:46:38 +02:00
Philipp Hörist 226c42a92a Add stubs file for emoji_data
Otherwise mypy hangs because the file is to big
2018-10-07 00:46:38 +02:00
Philipp Hörist 9bfa2d9258 fuzzyclock: Fix pylint errors 2018-10-07 00:46:38 +02:00