Philipp Hörist
2fd7187d16
Use new DataFormWidget with ServiceRegistration
2018-08-05 22:51:09 +02:00
Philipp Hörist
f90b9a6b3a
Add new DataFormWidget
2018-08-05 22:51:03 +02:00
Philipp Hörist
621d667f4c
Remove unused FeatureNegotiationWindow
2018-08-05 22:51:03 +02:00
Philipp Hörist
2ce78334ca
Fix direct MUC invite
2018-08-04 21:41:44 +02:00
Philipp Hörist
92af78f103
Move history window into gtk folder
...
- fix some pep8 warnings
2018-08-04 20:14:28 +02:00
Philipp Hörist
043e764896
Make Service Registration a Gtk.Assistant
...
- Move all xmpp Register methods into the register module
2018-08-04 19:47:57 +02:00
Sophie Herold
99ec800856
Rework History Dialog
2018-08-04 11:04:36 +02:00
Philipp Hörist
560a122ab5
Add error message to change password dialog
...
- Move register methods to own module
2018-08-01 00:35:42 +02:00
Philipp Hörist
4096ab5db5
Fix detecting oob data
2018-07-31 21:20:02 +02:00
Philipp Hörist
85bc3896ab
Handle messages without 'to' correctly
2018-07-30 21:58:22 +02:00
Philipp Hörist
23e39dc9e6
Move shortcuts dialog into gtk folder
2018-07-30 00:24:43 +02:00
Philipp Hörist
a7d9701c18
Move AccountCreationWizard into gtk folder
2018-07-30 00:20:38 +02:00
Philipp Hörist
b3f1416c24
Move features dialog into gtk folder
2018-07-29 23:58:38 +02:00
Philipp Hörist
137bf1f831
MAM: Request from last received stanza-id
...
Record stanza-ids from live messages. If Gajim is started query the
archive from the last received stanza-id
2018-07-29 23:16:13 +02:00
Philipp Hörist
dbf891e97c
Add missing bookmark dict entry
2018-07-29 22:26:52 +02:00
Philipp Hörist
394d38e663
Add lost server discovery query
2018-07-29 22:16:06 +02:00
Philipp Hörist
80aee95f2e
Reset connect_maschine after disconnect on purpose
2018-07-29 19:35:45 +02:00
Philipp Hörist
68bd3abbce
Fix creating metacontacts
...
- We call finish() in on_drop_in_group() and on_drop_in_contact(),
so dont do it in drag_drop()
- Fix singal names
2018-07-29 16:23:30 +02:00
Philipp Hörist
4686bcb8ca
Dont idle draw avatars and pep images
...
The model is detached from the treeview at start, so put all
avatars into the model before we attach it again.
Only draw PEP images when we receiv them. We dont save them to the
database so it makes no sense to try and draw them on start.
2018-07-29 12:16:41 +02:00
Philipp Hörist
7584037fc7
Fix typo
2018-07-28 13:32:37 +02:00
Philipp Hörist
b913d2745b
Improve speed of loading roster
2018-07-28 13:23:49 +02:00
Philipp Hörist
2f3d50b13f
Fix restoring open chatcontrols after restart
2018-07-27 16:16:23 +02:00
Philipp Hörist
5a6f03dea4
Add connect_maschine()
...
Add method that sequentially works the steps we have to do
before sending first presence
- Move Delimiter into own module
- Move Metacontacts into own module
2018-07-27 16:01:10 +02:00
Philipp Hörist
db77fa1ace
Add roster implementation to Gajim
2018-07-26 20:38:00 +02:00
Philipp Hörist
7ad6a28e12
Fix event name
2018-07-26 17:27:56 +02:00
Philipp Hörist
313b913ae4
Dont get own avatar_sha from contacts
2018-07-25 23:17:12 +02:00
Philipp Hörist
cf580c62de
Discover httpupload also on the user domain
2018-07-25 19:33:03 +02:00
Philipp Hörist
5d24c9bbdd
Move subscription code into presence module
2018-07-23 23:04:07 +02:00
Philipp Hörist
6c4d9ff4c7
Dont disco unnecessary server items
2018-07-23 20:44:57 +02:00
Philipp Hörist
ea34959b35
Catch cert error in posh query
2018-07-23 19:51:25 +02:00
Philipp Hörist
a943a35a5d
Move caps code into own module
2018-07-22 20:49:53 +02:00
Philipp Hörist
78e4e20d49
Move ProfileWindow into gtk module
2018-07-22 16:53:02 +02:00
Philipp Hörist
8c299c0b77
Remove unused imports
2018-07-22 16:46:37 +02:00
Philipp Hörist
8ed3952572
Move ManageBookmarksWindow into gtk module
2018-07-22 16:43:42 +02:00
Philipp Hörist
cd9ffc7ebf
Move ManagePEPServicesWindow into gtk module
2018-07-22 16:34:51 +02:00
Philipp Hörist
07c87a4194
Rewrite discovery code and move it into own module
2018-07-22 16:20:00 +02:00
Philipp Hörist
5ff9e9febf
Move dataforms into modules folder
2018-07-22 16:20:00 +02:00
Philipp Hörist
1156897b5d
Show Security Labels support in ServerInfo
2018-07-22 16:19:59 +02:00
Philipp Hörist
afb0306160
Move security labels into own module
2018-07-22 16:19:59 +02:00
Philipp Hörist
78858f7c82
Move more MUC methods into muc module
2018-07-22 16:19:53 +02:00
Philipp Hörist
37f7a80396
Move message handler into own module
2018-07-22 12:33:55 +02:00
Philipp Hörist
d4fd621d11
Use misc module to parse correction
2018-07-21 08:50:46 +02:00
Philipp Hörist
9f65bca3d3
Remove traces of forwarding messages (XEP-0146)
...
This is deprecated because its very insecure and also not needed
anymore because of MAM
2018-07-21 08:50:46 +02:00
Philipp Hörist
54b5dec6c7
Mock bookmarks for zeroconf
...
Fixes #9256
2018-07-20 23:17:58 +02:00
Philipp Hörist
5ed9768b87
Add JID to log output
2018-07-19 17:15:28 +02:00
Philipp Hörist
3a3b5aff20
Move some dialogs into gtk module
2018-07-18 00:15:46 +02:00
Philipp Hörist
bff5f14b92
Move invites into MUC module
2018-07-17 18:38:36 +02:00
Philipp Hörist
d65253b021
Move Carbons into own module
2018-07-17 18:38:36 +02:00
Philipp Hörist
6c70b63e34
Fix parsing jid from roster set event
2018-07-17 00:13:12 +02:00
Sophie Herold
f89169517e
Rework Plugins Dialog
2018-07-16 22:38:08 +02:00
Sophie Herold
67d9b7a7ea
Rework Bookmarks Dialog
2018-07-16 19:44:38 +02:00
Philipp Hörist
8fbafcd8fb
Register mam handler correctly
2018-07-15 23:58:21 +02:00
Philipp Hörist
dd664643bd
Move History Sync Dialog into gtk module
2018-07-15 14:32:08 +02:00
Philipp Hörist
ebbe06d587
Refactor MAM into own module
...
- Rework the MAM Preference dialog
- Move MAM Preference dialog into a new gtk module
- Refactor all MAM code into own module
- Refactor the MAM code itself so we can easier test it in the future
- Add a misc module for smaller XEPs and move EME, Last Message Correction
Delay, OOB into it
- Add dedicated module for XEP-0082 Time Profiles
2018-07-15 14:26:00 +02:00
Philipp Hörist
72ee9af79c
Set lower log level for password errors
2018-07-14 08:21:43 +02:00
Philipp Hörist
28aada122d
Fix it better
2018-07-13 18:09:48 +02:00
Philipp Hörist
45635736bf
Fix error if session is None
2018-07-13 18:06:31 +02:00
Philipp Hörist
c225ae70e4
Add debug logging for saving roster position
2018-07-12 23:19:22 +02:00
Philipp Hörist
4cb852914e
Fix bookmarks strategy
...
Strategy is now:
1. Get pubsub if supported
2. Get private storage and merge if we find boomarks we dont have
3. Store bookmarks to both pubsub and privatestorage
The only drawback with this strategy is, that a client that supports
only private storage cant delete bookmarks
2018-07-12 21:34:15 +02:00
Ave O
c3a359ba23
Change to gender-neutral alternatives of pronouns
2018-07-11 23:15:56 +03:00
Philipp Hörist
aaab5f17ce
Remove whitespace char from groupchat label
2018-07-11 19:04:09 +02:00
Sophie Herold
6d96005d55
Disable recently button if popover is empty
2018-07-10 18:08:11 +02:00
Sophie Herold
a506226d88
Add paste from clipboard in JoinGroupchat dialog
...
Closes #9237
2018-07-10 18:01:50 +02:00
Philipp Hörist
d9eb3e6891
Blocking: Raise NodeProcessed
2018-07-09 23:37:13 +02:00
Philipp Hörist
eb1b6f605a
Dump certificate before writing it to storage
2018-07-09 20:15:13 +02:00
Philipp Hörist
828d74570a
Remove print statement
2018-07-09 19:52:57 +02:00
André Apitzsch
dbb4c5318c
Filetransfer UI: remove deprecated properties
2018-07-08 22:48:28 +02:00
Philipp Hörist
c25a4a0aab
Fallback to account name when label is missing
...
Fixes #9236
2018-07-08 21:28:02 +02:00
Sophie Herold
0750d6f6ef
Fixes account box with one account is shown
2018-07-08 19:50:49 +02:00
Philipp Hörist
3438b06069
Fix JoinGroupchat hotkey if zeroconf is active
2018-07-08 19:50:27 +02:00
Philipp Hörist
a2d7283e6e
Refactor AdHocCommands into own module
2018-07-08 19:39:57 +02:00
Philipp Hörist
78d16c44f3
Register PEP module first
...
Other modules depend on it
2018-07-08 17:06:12 +02:00
Philipp Hörist
bd79fe629f
Refactor Privacy and Blocking into own modules
2018-07-08 16:44:14 +02:00
Philipp Hörist
3cfd82b0c2
Fix method call
2018-07-08 10:31:05 +02:00
Philipp Hörist
3a6f667008
Check if we have a nbxmpp Client object
...
In some cases the XMPPDispatcher which handles the callbacks is not
yet created.
2018-07-07 20:01:47 +02:00
Philipp Hörist
e918ac85fe
Remove streamhost redirect
...
After asking around this is a dead feature.
Because servers cannot be sure if clients support redirection, a server
using this feature would essentially risk that his users are not able to
connect at all.
2018-07-07 20:00:09 +02:00
Philipp Hörist
af7ac9211d
Fix pylint errors in dataforms module
2018-07-07 19:36:24 +02:00
Philipp Hörist
ff2fab73a1
Parse input sent via XMLConsole
...
This allows us to show the user an error if the stanza is invalid.
Until now the server would instantly disconnect us.
Also this fixes the problem that XMLConsole input was not counted for
streammanagement.
Fixes #8563
2018-07-07 19:20:28 +02:00
Philipp Hörist
3e4cf4a07d
Change nbxmpp event we use for XMLConsole
2018-07-07 18:28:43 +02:00
Philipp Hörist
59428d2f2f
Register all available modules automatically
2018-07-07 13:52:44 +02:00
Philipp Hörist
3a3b32249c
Fix requesting pubsub node config
...
Regression from refactoring
2018-07-07 01:49:50 +02:00
Philipp Hörist
09aead3e7f
Remove unused imports
2018-07-07 01:49:50 +02:00
Philipp Hörist
4bcdbde2c8
Move httpupload into modules
2018-07-07 01:49:50 +02:00
Sophie Herold
0eeb111a02
Rework Add Contact Dialog
2018-07-07 00:46:23 +02:00
Philipp Hörist
1e9fb205ee
Fix regression from 8b800f46
2018-07-06 23:54:29 +02:00
Philipp Hörist
a5b17a87a9
Pass account when clicking on xmpp:?join link
2018-07-06 22:17:05 +02:00
Sophie Herold
4fa4484dfd
Rework JoinGroupchat Dialog
2018-07-06 22:14:32 +02:00
Philipp Hörist
15bcd80e19
Call JoinGroupchat Dialog with account
2018-07-06 21:56:17 +02:00
Philipp Hörist
63a27ace61
Use open JoinGroupchat Dialog when browsing MUCs
2018-07-06 21:43:53 +02:00
Philipp Hörist
d45fa13ee9
Refactor atom into new module and disable it
...
Gajim lacks a good UI for microblogging
Fixes #9218
2018-07-06 21:02:06 +02:00
Philipp Hörist
70661b70d3
Rename method to something more appropriate
2018-07-06 20:12:50 +02:00
Philipp Hörist
6a363678f4
Dont handle all pep events
2018-07-06 20:05:57 +02:00
Philipp Hörist
ccb3c2decc
Move rest of UserAvatar into new module
2018-07-06 19:55:13 +02:00
Philipp Hörist
0a6b2126b3
Raise NodeProcessed after processing ROSTERX
2018-07-05 23:55:09 +02:00
Philipp Hörist
a1e1e56dda
Fix logic error when printing status
2018-07-05 22:03:06 +02:00
Philipp Hörist
51e85f14a3
Remove unused code
2018-07-05 21:41:28 +02:00
Philipp Hörist
503ee35bd0
Add message handlers for AUTH and ROSTERX
2018-07-05 21:09:55 +02:00
Philipp Hörist
fe3c1b4fbd
Refactor UserNickname into own module
2018-07-05 20:20:22 +02:00
Philipp Hörist
b04f9af4c5
Fix copy/paste typo
2018-07-05 19:54:32 +02:00
Philipp Hörist
31d6235881
Fix retracting UserTune/UserActivity
2018-07-05 19:38:41 +02:00
Philipp Hörist
bbf3a544e8
Refactor UserLocation into own module
2018-07-05 19:38:03 +02:00
Philipp Hörist
14f088c2d9
Refactor UserMood into own module
2018-07-05 19:37:51 +02:00
Philipp Hörist
1712743fd5
Fix typo
2018-07-05 18:14:36 +02:00
Philipp Hörist
3b7055ca74
Fix regression from 2ca0ca38
...
Fixes #9230
2018-07-05 18:06:48 +02:00
Philipp Hörist
73f290b518
Fix incorrect argument
2018-07-05 00:28:09 +02:00
Philipp Hörist
42ccbe7499
Dont fail if modules are not registered
...
This is for Zeroconf so we dont have to test in GUI always for
account != local
Fixes #9229
2018-07-05 00:16:42 +02:00
Philipp Hörist
a4350a812b
Refactor UserTune into own module
2018-07-05 00:16:42 +02:00
Philipp Hörist
568c2d93a0
Make new pep module more abstract
2018-07-05 00:16:32 +02:00
Philipp Hörist
b7775afd0c
Refactor UserActivity and PEP into own modules
2018-07-03 20:00:31 +02:00
André Apitzsch
0b5bb998c3
Fix AttributeError: 'VersionResultReceivedEvent' object has no attribute 'getResource'
2018-07-01 23:43:50 +02:00
Philipp Hörist
2ca0ca38a5
Refactor Pubsub/Bookmarks/UserAvatar into own modules
2018-07-01 22:35:56 +02:00
Philipp Hörist
858e472ef4
Fix showing notifications in the roster
...
There is a config setting in Gajim that allows to issue notifications
even if a chatcontrol is open. The config setting was only used for
system/desktop notifications in that case. Now it also controls if
a notification is shown in the roster.
Fixes #9223
2018-07-01 19:00:43 +02:00
Philipp Hörist
0dde1759e8
Make Profile a GtkApplicationWindow
...
Fixes #9180
2018-07-01 13:30:13 +02:00
Sophie Herold
d6501898d8
Polish Profile Dialog
2018-07-01 12:59:00 +02:00
Alexander Krotov
80fee32223
Rename plugin attribute "allow_privatchat" into "allow_privatechat"
2018-07-01 05:32:41 +03:00
Philipp Hörist
9c6a8df658
Fix updating room avatar correctly
2018-06-30 20:02:16 +02:00
Philipp Hörist
3b147a8c7f
Fix logging arguments
2018-06-30 19:41:03 +02:00
Philipp Hörist
8b800f4646
Refactor VCard code into own modules
2018-06-30 19:32:36 +02:00
Philipp Hörist
71a82b5c3e
Remove unused method
2018-06-30 13:11:27 +02:00
Philipp Hörist
5bc9822cec
Call notify check methods with JID arg
...
For subscription requests we dont have a contact obj
2018-06-30 11:02:30 +02:00
Alexander Krotov
7fa4c9e1c2
Spellcheck
2018-06-28 23:37:34 +02:00
Alexander Krotov
2e58ffdd49
Change data_form_window.ui to avoid "Overriding tab label for notebook" warning
2018-06-28 23:26:15 +02:00
Philipp Hörist
b0ce012ce3
Remove RC4-SHA because it is insecure
...
Newer openssl version would not use this even if it was stated in our cipher string
2018-06-28 18:43:15 +02:00
Philipp Hörist
ce9af46fc3
Fix join groupchat dialog with multiple accounts
...
The dialog didnt show the account combobox when activated
via CTRL + J from the Roster
Also add a application action for join groupchat
2018-06-28 00:04:17 +02:00
Philipp Hörist
129f72bf8e
Refactor http auth code into own module
2018-06-25 23:47:06 +02:00
Philipp Hörist
8fa1ee4617
Refactor last activity code into own module
2018-06-25 23:00:40 +02:00
Philipp Hörist
b74706afcf
Refactor roster item exchange code into own module
2018-06-25 22:43:09 +02:00
Philipp Hörist
f382ce2a6c
Remove unused code
2018-06-25 20:08:48 +02:00
Philipp Hörist
c39da015cc
Refactor annotations code into own module
2018-06-25 20:04:56 +02:00
Philipp Hörist
a0bc6f0155
Refactor search code into own module
2018-06-25 19:34:10 +02:00
Philipp Hörist
6d2a07df70
Remove support for XEP-0090
...
This is deprecated almost 10 years
2018-06-24 23:33:42 +02:00
Philipp Hörist
7b957a2876
Refactor ping code into own module
2018-06-24 23:33:42 +02:00
Philipp Hörist
81d9e1bcf2
Refactor software version code into own module
2018-06-24 23:33:42 +02:00
Philipp Hörist
1499010394
Refactor entity time code into own module
2018-06-24 23:33:42 +02:00
Alexander Krotov
10e1e1fe14
Replace progress bars in ad-hoc commands window with spinners
...
Progress bar "pulse" method indicates that something has been done. For example, when indexing files, it can indicate that one file has been processed, but the number of files to process is unknown. In case of ad-hoc commands, there is only an indication that Gajim is waiting for the network, so spinner is more appropriate here.
2018-06-24 02:45:01 +03:00
Philipp Hörist
fd137be30f
Send cancel IQ if muc configuration is aborted
...
Fixes #9069
2018-06-23 23:36:26 +02:00
Philipp Hörist
a30a61e5ff
Fix joining rooms with upper cases
...
Fixes #9198
2018-06-23 22:33:03 +02:00
Philipp Hörist
9b07cf8d41
Add loading single builder objects on Windows
...
This was still missing from the Windows translation fix
2018-06-23 20:35:16 +02:00
Alexander Krotov
bd4aa0f40f
Replace ad-hoc command radio buttons with a list
...
Radio buttons are more suitable for static lists of options.
GNOME seems to be using lists in similar situations, for example to show a list of network printers.
This also makes it possible to search a command by typing.
2018-06-23 21:21:55 +03:00
Philipp Hörist
78ebaefaec
Dont punycode encode all domain names
...
RFC7622 3.2.1
... This implies that the string MUST NOT include A-labels ...
Fixes #9211
2018-06-23 20:15:00 +02:00
Philipp Hörist
86eddc2ee9
Remove unused config option log_encrypted_sessions
...
Fixes #9189
2018-06-23 17:13:57 +02:00
Philipp Hörist
23c302ca70
Fix translation on Windows
...
Fixes #8658
2018-06-23 17:07:43 +02:00
Philipp Hörist
af11aa985b
Make sure show is always a string
...
This is so we hopefully can find some bugs
2018-06-22 20:23:35 +02:00
Alexander Krotov
672f02b3b0
Fix usage of loop variable in socks5.py
...
Loop seems to be checking whether on_success callback
is already called, but due to wrong variable used
it did nothing.
2018-06-22 08:05:31 +02:00
Alexander Krotov
d871dcdcb1
More spelling fixes
2018-06-22 01:47:29 +03:00
Alexander Krotov
1d27ab2254
Spellcheck
2018-06-21 03:05:47 +03:00
Alexander Krotov
22d799a75e
Set secure_delete pragma for SQLite3 connections
...
secure_delete makes SQLite3 overwrite deleted data with zeros, thus actually deleting it from the filesystem.
Ubuntu and FreeBSD enable it by defualt, but some distributions, such as Debian, have it disabled by default, so it is better to set it explicitly.
The performance impact should be negligible as Gajim uses the database rarely.
2018-06-19 19:07:16 +02:00
Philipp Hörist
e20f044001
Increase timeframe for duplicate search
...
A too short timeframe leads to not recognizing duplicates if the server
time differs from the user time. This is only a problem with mam:1
Fixes #8750
2018-06-19 19:05:44 +02:00
Alexander Krotov
1870f560a4
Spellcheck some comments and docstrings
2018-06-19 01:56:18 +03:00
Philipp Hörist
3c1490a306
Remove forward message adhoc commands
...
These commands introduce security concerns because how they interact
with encrypted messages.
With MAM and Carbons installed on nearly every server these Adhoc commands
became not useful anymore
2018-06-17 23:21:29 +02:00
André Apitzsch
27bb7d1a38
Fix TypeError: get_dialog() got multiple values for argument 'name'
2018-06-17 21:15:51 +02:00
Alexander Krotov
956a420171
Fix docstrings for XEP-0146 commands
2018-06-17 20:09:32 +02:00
André Apitzsch
ab3c53bf49
Remove yahoo transport
...
fixes #9188
2018-06-15 12:19:02 +02:00
Philipp Hörist
6492d15918
Contacts should not be added to Zeroconf account
2018-06-06 21:19:18 +02:00
Philipp Hörist
1303b89ba1
Dont request vcard more than once per session
...
Print a warning message if the announced avatar sha differs from the
received one
Fixes #9171
2018-06-05 23:37:10 +02:00
Philipp Hörist
ce7892546c
Catch error on calling setlocale()
...
Fixes #9167
2018-06-05 12:02:50 +02:00
Philipp Hörist
631740b66b
MUC: Fix voice request
...
Fixes #9159
2018-06-01 20:58:09 +02:00
Philipp Hörist
c5f8fe915a
Disable subject change if room doesnt allow it
2018-06-01 20:02:29 +02:00
Sophie Herold
77fb424cb0
Fixes notifications are missing after refactoring
2018-06-01 18:51:29 +02:00
Philipp Hörist
4bed8ace95
Refactor Notifications
...
- Use icon names instead of path
- Move PopupNotificationWindow into notify.py
- Make popup class method instead of module method
- Dont use sessions to get control on notification action Fixes #9140
- Add has_focus() method to ChatControlBase
2018-06-01 17:48:05 +02:00
Philipp Hörist
2abbb1e224
Define JID type when searching for duplciates
...
Fixes #9163
2018-06-01 17:46:54 +02:00
Philipp Hörist
a506758ed3
Remove TLEN related transport code/icons
...
This Messenger shut down and is not available anymore
2018-05-31 21:01:29 +02:00
Philipp Hörist
d656428090
Remove MSN related transport code/icons
...
This Messenger shut down and is not available anymore
2018-05-31 20:29:13 +02:00
Philipp Hörist
38c669b6e1
Remove AIM related transport code/icons
...
This Messenger shut down and is not available anymore
2018-05-31 20:29:06 +02:00
Philipp Hörist
395d24bee6
Use certifi on MacOS
...
Python 3.6 does not use the MacOS cert store anymore
2018-05-31 17:35:46 +02:00
André Apitzsch
5e712768cf
Add support for flatpak extensions
2018-05-29 08:34:20 +02:00
Philipp Hörist
32b74b459e
Remove support for ESessions
...
Fixes #5294
2018-05-28 18:21:45 +02:00
Philipp Hörist
56fbe32b11
Fix zeroconf txtrecord encoding
...
Fixes #9146
2018-05-27 21:03:42 +02:00
Philipp Hörist
dbbf078229
Determine earlier if we run as Flatpak
2018-05-27 13:45:07 +02:00
Philipp Hörist
b749eccf51
Fix idle detection
...
Fixes #9149
2018-05-27 10:51:57 +02:00
André Apitzsch
70525c00d2
Config: use with-statement
2018-05-27 02:22:21 +02:00
lovetox
2d6e7d2eee
Get rid of python-avahi
2018-05-23 11:47:13 +02:00
Philipp Hörist
bc24ab470d
Fix translation in flatpak build
...
Fixes #9138
2018-05-23 08:38:09 +02:00
Philipp Hörist
d0ec9812a6
Fix Zeroconf
...
- Port pybonjour code from gajim_0.16 branch
- Fix some other small things that broke zeroconf
2018-05-22 23:38:04 +02:00
Philipp Hörist
7b0cbb7763
Fix detecting language
2018-05-21 21:49:19 +02:00
Philipp Hörist
2410121ddb
Add dedicated zeroconf menu
2018-05-21 21:18:38 +02:00
Philipp Hörist
b3162f400c
Detect if we run as flatpak
...
Fixes #9110
2018-05-21 19:17:47 +02:00
Philipp Hörist
59cfddc3ca
Fix first start with no accounts
2018-05-21 18:57:18 +02:00
Philipp Hörist
714d70cb23
Dont get current version from config
2018-05-21 18:49:06 +02:00
Philipp Hörist
0ea721fbf1
Fix log message
...
Presence without vcard hash is not invalid
2018-05-21 18:38:47 +02:00
Philipp Hörist
764b275394
Dont show encryption methods if not supported
2018-05-21 18:09:44 +02:00
Philipp Hörist
7040ea6b2e
Move module calls into init
...
On Linux ctypes has not attr windll, move it into the __init__()
so it does not get evaluatet on module import
2018-05-21 02:39:29 +02:00
Philipp Hörist
c5df74c509
Refactor idle module
...
- Get rid of sleepy.py, handle everything in idle.py
- Introduce one Monitor class that handles everything
2018-05-21 02:32:33 +02:00
Sophie Herold
2e5d966f1d
Support for idle time under GNOME without X11
...
* Removes use of most global variables
* Adds some some logging
* Removes unused close() method for Xss
2018-05-20 20:45:46 +02:00
Philipp Hörist
3e0557dae6
Dont build menu for Local account
2018-05-20 20:15:08 +02:00
Philipp Hörist
848cdc4a88
ProfileWindow: Remove redundant menu entry
2018-05-20 01:28:12 +02:00
Philipp Hörist
2819232808
Fix AvatarChooserDialog not beeing native
...
Setting mimetypes forces non-native dialogs
2018-05-20 01:28:12 +02:00
Philipp Hörist
2636e3449f
Refactor avatar publishing
...
- Publish avatars with a size of 200x200
- Add AvatarSize.PUBLISH so we can easily change it in the future
- Dont upscale small avatars on publish
- Use surfaces for displaying the avatar in ProfileWindow and VcardWindow
because this scales correctly on HiDPI screens
2018-05-20 01:28:12 +02:00
Philipp Hörist
381c7f2ee7
Update Gajim version to 1.0.3
2018-05-19 10:57:49 +02:00
Philipp Hörist
bc22bbad5d
Raise required nbxmpp version
2018-05-19 10:50:43 +02:00
Philipp Hörist
117036b872
Init Roster after stream management resume
...
nbxmpp deletes the roster object on disconnect. Init the roster from db
again on resume.
Fixes #8296
2018-05-18 18:20:30 +02:00
Philipp Hörist
6ed04e2dd2
Simplify generating random int
...
No need to use SystemRandom() here, as this is not needed for security
purposes
2018-05-17 21:13:37 +02:00
Philipp Hörist
4731e8491b
Move signal code into gajim.py
...
The reason for signal.signal(signal.SIGPIPE, signal.SIG_DFL)
Python ignores SIGPIPE by default ( signal(SIGPIPE, SIG_IGN) )
Write on a socket return then an error 32 EPIPE, which naturally
turns into an exception.
signal.SIG_DFL restores normal UNIX behavior
2018-05-17 20:59:22 +02:00
Philipp Hörist
72df2524e9
Remove check_X509
...
We dont need this module anymore
2018-05-17 20:12:02 +02:00
Philipp Hörist
3b130db60c
Simplify set_i18n_env()
...
We already determine LANG in initialize_lang()
getdefaultlocale() takes env var LANG into consideration
2018-05-17 20:07:30 +02:00
Philipp Hörist
03aa1db306
Handle LC_ALL=C correctly
...
We default to 'en' for LANG if LC_ALL=C is set
2018-05-17 20:01:59 +02:00
Philipp Hörist
2a8c0da367
Use i18n module to determine locale
2018-05-17 20:01:59 +02:00
Philipp Hörist
40aa3d808b
Remove unused comments
...
The attributes were removed in 8e09fd92
2018-05-17 20:01:59 +02:00
Andrey Gursky
4f29e2b353
Preserve SSL handshake errors order
...
Sets are unordered and list with push/pop acts as LIFO, though we need FIFO.
Since the number of elements is tiny, no need to use deque.
Addresses #9120
2018-05-16 19:50:21 +02:00
BBreeziN
f13ff8ac68
Fix call to config.get_per() in method that gets account name from jid
2018-05-15 23:39:44 -04:00
Philipp Hörist
3c22ab752a
Bring control to front when notification is clicked
...
if autopopup_chat_opened is activated no control is found because
the event that triggered the notification is already deleted when
the notification is clicked by the user. So instead of searching
for the event, search for the control with jid/account.
Fixes #9124
2018-05-12 23:36:52 +02:00
Philipp Hörist
04b86a7bd0
Dont show OOB uri if message body is the same
...
if oob uri == body there is no need to show the uri
below the message
2018-05-10 16:16:38 +02:00
Philipp Hörist
ffe8ee8068
Return account instead of jid
2018-05-10 13:28:26 +02:00
Philipp Hörist
093ba8dd97
Provide method to get the account name from a jid
2018-05-10 10:53:56 +02:00
Philipp Hörist
2bb5d55c03
Add conversion from account_id to account jid
...
To use this alias `account_id` with `account`
Example: SELECT account_id as account FROM logs
2018-05-08 19:20:11 +02:00
Philipp Hörist
8b9eb59ee4
Set no-store hint on groupchat chatstates
2018-05-07 18:04:24 +02:00
Philipp Hörist
1ecf0ec008
Use NativeFileChoosers on Windows and MacOS
...
These platforms integrate a file preview in their native filechoosers
2018-05-06 09:17:58 +02:00
Philipp Hörist
913634c4c6
Add menu for uploading room avatars
2018-05-06 09:11:32 +02:00
Markus Wintermann
e9a4b372e2
Select account in account list if edited
...
Before: After a rightclick -> "Modify Account" on an account in the
roster the preferences of the account are shown but the account is not
selected in the account list.
After: account will be selected in the account list too
2018-05-05 14:19:17 +02:00
Philipp Hörist
c38db84e04
Refactor FileChooserDialogs
...
Use GtkFileChooserDialog only when we need previews, default to
NativeFileChooser otherwise.
GtkFileChooserDialogs have a long list of issues, so lets only use it
if we gain something from it.
Flatpak should only run NativeFileChoosers because its sandboxed and
this is needed for security purposes. As a result of that, Flatpak Users
dont have image previews in the FileOpenDialogs
Refactor all FileChoosers for a more simple approach when we use them
Add a new SendFileDialog, so we dont have to put widgets into the FileChooser
which forces non-native Dialogs.
2018-05-05 09:22:08 +02:00
Philipp Hörist
bb33e055a5
Fix regression from refactoring
...
regression was introduced in e2383fd7a4
2018-05-02 22:38:07 +02:00
Philipp Hörist
497c710dd8
Remove unused Dialog
...
Using a FileChooserDialog for this is overkill, use FileChooserButton
in the future
2018-05-02 22:38:07 +02:00
Philipp Hörist
0f7097b7e0
Remove unused Dialog
...
This was nonfunctional for a long time and nobody complained
2018-05-02 22:38:07 +02:00
Philipp Hörist
fc9d242f65
Refactor ManageSoundsWindow
...
- Move code into ui file
- Use FileChooserButton instead of FileChooserDialog
- Make methods private
- Simplify code
2018-05-02 22:38:07 +02:00
Marcin Mielniczuk
ad4c1347ff
Be more descriptive about the ascii_emoticons configuration option
2018-05-02 20:19:24 +02:00
Philipp Hörist
ba08ddfef0
Remove not used Dialog
...
We use now a Gtk.FileChooserButton for client certs
2018-05-02 19:48:44 +02:00
Philipp Hörist
bcf27cb3c1
Support for PKIX over Secure HTTP (POSH)
...
Fixes #9083
2018-05-01 21:08:26 +02:00
Philipp Hörist
c534d3a147
Refactor SSL errors
...
Dont save fingerprints to config and check certs with our own methods.
We should trust openssl to do all necessary checks.
Self signed certs can be added to cacert.pem and will not show up as
an error until the cert changes.
nbxmpp now saves all ssl errors and passes them, so now we loop over
all errors until all are confirmed or ignored by the user
Also cacerts are now saved in utf-8
2018-05-01 14:03:20 +02:00
Philipp Hörist
779a4d4ce3
Get version from package instead of config
2018-05-01 00:37:13 +02:00
Marco Cirillo
a937b0a5e2
servers.xml: re-add lightwitch.org as IBR was re-enabled.
2018-04-30 20:35:28 +02:00
Philipp Hörist
81952f6a7c
Convert font weight from pango to css values
...
Fixes #9106
2018-04-30 17:43:32 +02:00
Yann Leboulanger
b5c51932f4
update version to 1.0.2
2018-04-30 17:04:58 +02:00
Philipp Hörist
9aea8eea38
Depend on nbxmpp 0.6.5
2018-04-30 16:57:19 +02:00
Philipp Hörist
3b73b6f5bb
Windows: Always hide roster window on X
...
As all Windows versions have a status icon and most Windows users expect this
Fixes #9031
2018-04-30 00:35:48 +02:00
Philipp Hörist
06c4ce60b9
Show correct account lable in tooltip
...
Fixes #9065
2018-04-29 23:47:30 +02:00
Philipp Hörist
e0e3b9609a
Dont set urgency when we already set priority
...
set_urgent is deprecated in favor of set_priority
Fixes #9101
2018-04-29 23:38:16 +02:00
Philipp Hörist
56a5d01609
Dont allow plain BOSH by default
2018-04-29 23:34:46 +02:00
Philipp Hörist
b8554e3e22
Jingle: Check first if we have a content
...
Fixes #9094
2018-04-29 23:30:08 +02:00
Markus Wintermann
49bfc1f226
Add support for dynamic reloading of plugins
...
* rename the remove_plugin function to uninstall_plugin because it
deletes files on the disc and uninstall is the label of the button which
triggers this function
* added a new remove_plugin function, which deactivates the plugin (if
needed), removes it from the list of managed plugins and deletes the
contents of sys.modules
2018-04-28 13:31:19 +02:00
Philipp Hörist
707599dd86
Dont determine paths at module import time
2018-04-25 21:26:02 +02:00
Philipp Hörist
8c23d5a4b5
Move some imports
2018-04-25 21:24:05 +02:00
Philipp Hörist
b4f6116e3b
Import app only once
2018-04-25 20:59:23 +02:00
Philipp Hörist
105427b8fd
Use consistent way to get paths
...
This lets us now import the app module without setting paths
2018-04-25 20:49:37 +02:00
Philipp Hörist
52cbae69ee
Refactor Gajim startup
...
Remove as much as possible startup code from GtkApplication to stay
more true to our goal to separate GUI from the rest of Gajim
2018-04-25 19:16:38 +02:00
Philipp Hörist
e2383fd7a4
Refactor i18n module
...
- Move everything translation related from gajim.py to i18n.py
2018-04-24 23:03:19 +02:00
Philipp Hörist
21d4d0cb1e
Remove unused import / codestyle
...
Pass args to logging method instead of string formatting
2018-04-24 21:34:53 +02:00
Philipp Hörist
e265514d88
Detect dependencys only on demand
...
This allows us to import the app module without triggering
dependency detection
Also add is_installed() for checking if a dependency is installed and
disable_dependency() in case we dont want to use a dependency
2018-04-24 19:36:33 +02:00
Philipp Hörist
986898f69d
Dont check for OpenSSL we require it on install
2018-04-23 23:47:17 +02:00
Philipp Hörist
5ee45b86e9
Refactor database migration
...
- Move database migration to the logger module
- Dont depend on Gajim version for migration use PRAGMA user_version
- Refactoring of some methods in the logger module
- Dont use cursor object, if there is no reason
- Make some attributes and methods private
2018-04-23 21:27:01 +02:00
Philipp Hörist
4c1bfda48d
Fix const imports
2018-04-23 18:32:01 +02:00
Philipp Hörist
4f2033faff
Move constants into const module
2018-04-23 18:23:57 +02:00
Philipp Hörist
86bfc81ad3
Remove old unused migration method
2018-04-23 17:34:14 +02:00
Philipp Hörist
3efa731fbf
Add stanza_id index also when we create the DB
2018-04-23 00:10:35 +02:00
Philipp Hörist
8306f076b3
Move path creation into configpaths module
2018-04-22 23:12:34 +02:00
Philipp Hörist
124e501f26
Make ExceptionDialog easier to test
2018-04-22 22:34:27 +02:00
Philipp Hörist
188fb85bd0
Move DB creating into logger module
2018-04-22 22:16:17 +02:00
Philipp Hörist
efd2ca50c6
Remove unused old migration method
2018-04-22 02:30:34 +02:00
Philipp Hörist
3ad539cbf2
Make sure all config dirs get created
...
LOG_DB_FOLDER and CACHE_DB_FOLDER are equal to MY_DATA and MY_CACHE
2018-04-22 02:30:08 +02:00
Philipp Hörist
220bf35827
Create some folders only on demand
2018-04-22 00:55:48 +02:00
Philipp Hörist
c0c16dbf94
Dont change path names because plugins use them
2018-04-21 21:28:19 +02:00
Philipp Hörist
848c5cbdd0
More refactoring around paths
...
- Remove old config dir migration
- Remove some unused config paths
- Rewrite configpaths.init()
- Simplify creating paths in check_paths
2018-04-21 21:19:32 +02:00
Philipp Hörist
72e69a59af
Fix setting custom config root
2018-04-21 14:47:47 +02:00
Philipp Hörist
b0fce17cf2
HistoryManager: Open window centered
2018-04-21 13:59:30 +02:00
Philipp Hörist
0739eb9dec
HistoryManager: Init configpaths only in standalone mode
2018-04-21 13:59:20 +02:00
Philipp Hörist
4a26ecb12c
Refactor configpaths
...
- init configpaths earlier so logging can access it to store debug logs
- First step for more consistency across Gajim when looking up paths
Recommended usage for the future:
app.configpaths.get()
configpaths.get()
2018-04-21 12:48:57 +02:00
philipp
8e9c040acf
Support http:upload:0
2018-04-20 08:35:40 -04:00
Philipp Hörist
dadc85bb52
Fix tests
2018-04-19 22:22:04 +02:00
Philipp Hörist
290e761f88
Add support for Room Avatars
...
- Groupchats promote a vcard hash with presence
Refactoring:
- Dont delete groupchat contacts if they are maximized from the roster
- Roster and GroupchatControl use the same contact object
2018-04-19 22:11:41 +02:00
Philipp Hörist
70a7000d44
Dont be lenient with namespace
2018-04-19 17:59:17 +02:00
Philipp Hörist
a45554a10b
Save history export with utf8 encoding
2018-04-17 22:00:15 +02:00
Philipp Hörist
53b38bd5d5
Use JID as default account name
...
Fixes #8939
2018-04-15 23:36:34 +02:00
Philipp Hörist
e3066fb5ca
Improve AccountsWindow design
...
Fixes #8940
2018-04-15 23:36:34 +02:00
Daniel
e93ab408ec
Fix History Manager search
2018-04-15 22:45:04 +02:00
Markus Wintermann
a86abf2cf9
Update proxy comobobox in accounts/connections
...
After a new proxy was added/removed by ManageProxies the combobox in
accounts/connections gets updated
2018-04-14 22:01:58 +02:00
Philipp Hörist
93af68f81c
Dont show error when receiving invalid avatars
...
Fixes #9022
2018-04-14 10:34:58 +02:00
Daniel
9f0eaf9df7
Fix placeholder not being removed when inserting nick in MUC via context menu
2018-04-13 22:36:57 +02:00
Philipp Hörist
363fdf7d9a
Dont use str as a var name
2018-04-09 21:39:57 +02:00
Philipp Hörist
cf8f0c2e83
Delete account from config if registration fails
2018-04-09 19:14:42 +02:00
Philipp Hörist
6baed38d4c
Make code better understandable
2018-04-09 00:35:27 +02:00
Bronko
fcad0f088a
save hash and mime_type of avatar when receiving vCard from server
...
in case the avatar is not changed by the user we must resend the still valid hash.
if we do not save the hash here, gajim advertises an empty photo element after publishing the vCard,
which removes the avatar for all receiving clients of the photo element update
2018-04-08 23:45:32 +02:00
Bronko
36b31259e7
save encoded avatar when receiving vCard from server
2018-04-08 20:58:24 +02:00
Yann Leboulanger
879e03449c
fix some py2->py3 missing things. Fixes #9019
2018-04-07 23:06:48 +02:00
Yann Leboulanger
6d868546fa
update action when creating groupchat window. Fixes #9042
2018-04-07 22:48:38 +02:00
Yann Leboulanger
27e45856b0
prevent traceback. Fixes #9054
2018-04-07 22:04:32 +02:00
Yann Leboulanger
93b50bf1f6
prevent a traceback with wrong bookmarks. Fixes #9055
2018-04-07 22:01:39 +02:00
Philipp Hörist
cf911b3984
Fix regression from 4caa4971
2018-04-05 22:14:57 +02:00
Philipp Hörist
711f3cbbb0
Encode filenames before sending
...
Fixes #9039
2018-04-05 19:38:17 +02:00
Philipp Hörist
898ac96647
Some status codes should only be in our presence
...
Some Servers broadcast these status codes in every presence which
is wrong accoring to the XEP
2018-04-04 22:16:46 +02:00
Philipp Hörist
1b8d76bf9e
Add missing return statement
2018-04-04 22:10:34 +02:00
Yann Leboulanger
2ea9fc6932
when adding bookmark, check server validity on focus out only. Fixes #7879
2018-04-04 15:16:41 +02:00
Yann Leboulanger
17ae4e4ccc
Hide protocol combobox when adding contacts if only XMPP is available
2018-04-04 14:46:46 +02:00
Yann Leboulanger
8e144e46f8
Use XMPP logo in add contact dialog for XMPP protocol. Fixes #9049
2018-04-04 14:42:10 +02:00
Yann Leboulanger
dc58586a7a
mark string as translatable. Fixes #9050
2018-04-04 14:23:12 +02:00
Philipp Hörist
4caa4971b2
Catch decrypted-message-received event in ChatControl
...
It makes more sense to catch the event with ChatControl than with the
RosterWindow. RosterWindow is only used now if no ChatControl is open.
2018-04-04 01:13:02 +02:00
Philipp Hörist
8a4264c94e
Remove event handler on ChatControl Shutdown
2018-04-04 00:00:08 +02:00
Philipp Hörist
f29d57e50b
Catch invalid IQ stanzas and log them
...
Fixes #9044
2018-04-03 19:54:09 +02:00
Philipp Hörist
199f1c74ff
Dont call show_all() on AboutDialog
...
Fixes #9038
2018-04-02 21:37:08 +02:00
André Apitzsch
672aae9c12
Fix password storage in plain text issue
2018-04-02 15:50:23 +02:00
Yann Leboulanger
dc3565ee32
prepare 1.0.1 release
2018-04-01 22:48:42 +02:00
Yann Leboulanger
0f13b23a7d
correctly set process name. Fixes #9034
2018-04-01 15:05:06 +02:00
Philipp Hörist
e326aabf5f
Decode PGP decrypted messages
2018-03-31 01:18:28 +02:00
Philipp Hörist
634cbd93a8
Remove not supported methods
...
Methods have been remove in from IPython since 2016
b7d03ed6b1 (diff-3ffc5a89fb88284fe9b5787b8859140b)
Fixes #9023
2018-03-30 15:05:25 +02:00
Yann Leboulanger
ec78ce22e6
don't allow to open several filter dialogs. Fixes #8848
2018-03-29 12:26:37 +02:00
Yann Leboulanger
c2184aaf8c
remove bookmark and close muc when destroying the room. Fixes #8862
2018-03-29 11:01:25 +02:00
Yann Leboulanger
a884ba6762
prevent traceback. Fixes #8936
2018-03-29 09:41:40 +02:00
André Apitzsch
612b7b4302
Show help lines only once
...
fixes #9018
2018-03-28 20:13:05 +02:00
Yann Leboulanger
a9a6b048fb
set a transient_for for join groupchat dialog when needed. Fixes #8994
2018-03-28 16:14:54 +02:00
Yann Leboulanger
16b8eb1fd0
ability to fix room name when browsing muc service. See #8994
2018-03-28 15:22:28 +02:00
Yann Leboulanger
f52e8d889c
don't traceback on account deletion. Fixes #8960
2018-03-28 11:36:14 +02:00
Philipp Hörist
241deac31c
ChatControl: Display status message nicer
2018-03-27 23:43:24 +02:00
Yann Leboulanger
a3853f6958
fix string
2018-03-27 15:02:11 +02:00
Yann Leboulanger
7562acbe5b
correctly generate css for font that have a space. Fixes #9012
2018-03-27 12:25:20 +02:00
Philipp Hörist
5794d54d1c
Dont print status if it has not changed
...
Only print the status, if status has changed or the status message
Clients announce there idle-time with presences but adding a idle-time
does not necessarily mean they went from available -> away
Fixes #9001
2018-03-26 23:47:43 +02:00
Philipp Hörist
4f1ba653e1
Raise min GTK version to 3.22
2018-03-26 19:41:41 +02:00
Yann Leboulanger
5353f770a1
Fix button text. Fixes #9005
2018-03-26 17:45:32 +02:00
Philipp Hörist
99b3aebc99
Remove unused imports
2018-03-26 01:06:56 +02:00
Philipp Hörist
6f55cf3dd4
Fix some problematic imports
2018-03-26 00:19:59 +02:00
Philipp Hörist
b54f27599c
Set min-width for notebooks tabs
...
Fixes #8973
2018-03-25 23:28:17 +02:00
Roland Pallai
23add367be
Fix regression in a4291a27
2018-03-25 22:46:51 +02:00
Roland Pallai
a4291a27f1
Fix sound playback for received group chat messages
...
Testing for historical messages was broken because `msg_obj.timestamp`
second resolution assumed but this is false and this led to broken
sound playback for received group chat messages.
2018-03-25 22:26:59 +02:00
Philipp Hörist
69fd7dc737
Groupchat: Set minimize on auto join default True
2018-03-25 21:34:42 +02:00
Yann Leboulanger
5874f5c388
ability to run history manager even when -s option is used to run Gajim
2018-03-25 20:52:36 +02:00
Yann Leboulanger
e44d5e9778
typo
2018-03-25 18:29:17 +02:00
Yann Leboulanger
a336f48b67
more string improvements
2018-03-25 18:20:37 +02:00
Yann Leboulanger
faa88819a1
improve some strings
2018-03-25 16:26:29 +02:00
Philipp Hörist
f7d9c16735
MessageTextView: Remove placeholder on paste
...
Fixes #8975
2018-03-25 01:39:16 +01:00
Philipp Hörist
6bd6294ab2
Disable autoscroll when moving the slider
2018-03-25 01:16:20 +01:00
Philipp Hörist
040521397e
Dont use invalid sound devices
...
PulseAudio has devices that are None
Fixes #8797
2018-03-25 00:48:29 +01:00
Philipp Hörist
af9552d704
Fix Autoscroll (for real this time)
...
Fixes #8992
2018-03-25 00:36:48 +01:00
Philipp Hörist
6207e607a8
Fix NoneType Error
...
element can be None if there was a error while calling Gst.ElementFactory.make()
2018-03-24 21:57:40 +01:00
Philipp Hörist
0fb19c2b1c
Show error message on account registration
...
Prefer the error message text over the error code
2018-03-24 17:55:32 +01:00
Philipp Hörist
e134e47deb
HistoryManager: Clear logs TextView when nothing is selected
2018-03-24 17:25:49 +01:00
Philipp Hörist
058d3db1b0
Logger: Test for None after fetchone()
...
fetchone() returns None when nothing is found
len(None) yields a TypeError
2018-03-24 17:13:15 +01:00
Philipp Hörist
77dc975023
Only test if MUCs are on the blacklist
2018-03-24 10:52:16 +01:00
Philipp Hörist
af2c66b50b
Improve disabling autoscroll
...
Add the SHIFT + PAGE_UP keypress
Fix catching mouse scroll UP on some systems
2018-03-24 02:36:22 +01:00
Philipp Hörist
9314a0543b
Add non-compliant mam:2 MUCs to blacklist
...
For MUCs on the blacklist we do a deduplication not depending on
stanza-id
This patch is only for current Prosody 0.10 stable and the mod_mam_muc
module which does not add stanza-id to the messages.
This can be removed once Prosody 0.11 hits or the module is updated
2018-03-24 01:47:03 +01:00
Philipp Hörist
4e1a9db6cc
Remove conditional code for nbxmpp < 0.6.3
2018-03-24 00:19:27 +01:00
Philipp Hörist
b3e6170e57
Remove cacert.pem
...
Dont ship cacerts, use certifi on Windows
2018-03-24 00:17:34 +01:00
Yann Leboulanger
ba48e4530b
don't just ignore when we receive an error to vcard request. Fixes #8965
2018-03-23 22:17:59 +01:00
Philipp Hörist
e0256719ae
Refactor resizing MUC rosters
...
Dont trigger resizes on notify::position, because the absolut
handle position changes also on window resizes, but the relative handle
position doesnt change.
Instead we use the notify::position event now to save the new position
to the config file and use left button release event (release of the handle after dragging)
and the window maximize/minimize event to trigger resizes in all controls
This fixes also fixes a issue where a previously hidden roster was shown again
if a new tab was opened.
Fixes #8984
2018-03-23 00:41:15 +01:00
Philipp Hörist
3d980fd6f5
Show image preview in filechooser dialog
2018-03-21 20:24:20 +01:00
Philipp Hörist
a218864d91
Add stanza to log output in case of an error
2018-03-21 19:53:07 +01:00
Andrey Gursky
c6172c86ad
Fix window position restore on multi-head setups
...
Gajim stopped to properly restore roster and dialogs windows positions
after restart with more than one monitor attached.
Gajim saves the absolute window positions, i.e. based on the total screen size
of all monitors attached. Despite Gtk deprecated Gdk.Screen.width() and height(),
we cannot just use width() and height() for one monitor, as recommended.
We still need the total screen size, which was the base for saving the positions.
[1] https://stackoverflow.com/questions/30207586/gdk-screen-vs-monitor-vs-display
2018-03-21 19:40:54 +01:00
Andrey Gursky
8d583a1801
Fixup for History Manager
...
Only call Gtk.main_quit() if History Manager is running standalone.
2018-03-21 19:30:21 +01:00
Philipp Hörist
57d4ddcd57
Commandline args are always type str in Python3
...
Fixes #8970
2018-03-21 19:17:15 +01:00
Philipp Hörist
abdca0eaac
Fix TextView scrolling
...
Fixes #8813
2018-03-20 22:19:30 +01:00
Philipp Hörist
83f57d49cb
Remove unused code
2018-03-19 20:25:25 +01:00
Philipp Hörist
b7e9fb70e3
Limit width of entrys in StartChat Dialog
2018-03-19 20:04:51 +01:00
Philipp Hörist
945b7baafb
Only handle event if it belongs to the control
2018-03-19 01:34:38 +01:00
Philipp Hörist
cbab10bedd
Fix showing `not in roster` status icon
2018-03-18 00:04:49 +01:00
Yann Leboulanger
504bfef7db
don't crash when we parse arguments in history manager. Fixes #8959
2018-03-17 22:16:54 +01:00
Philipp Hörist
9de427f6fa
Allow multiple file uploads
...
Fixes #8957
2018-03-17 20:44:14 +01:00
Philipp Hörist
a5db65703b
Fix displaying VCard of unknown contact
...
In some cases sub can be None
Fixes #8954
2018-03-17 20:37:35 +01:00
Philipp Hörist
788c064cee
Update Gajim version to 1.0.0
2018-03-17 17:59:04 +01:00
Philipp Hörist
368a2177fc
Raise nbxmpp min version
2018-03-17 17:57:27 +01:00
Philipp Hörist
47f0836567
Add [URI...] to commandline --help
2018-03-17 17:16:48 +01:00
Philipp Hörist
52c06cd64f
Catch all exceptions when testing Farstream
2018-03-17 12:20:21 +01:00
Philipp Hörist
d8777a78aa
Fix deleting an account that was never connected
...
Fixes #8951
2018-03-17 00:20:11 +01:00
Philipp Hörist
8f2bc1e1c6
Handle connection lost notification click
...
Fixes #8823
2018-03-15 18:37:34 +01:00
Philipp Hörist
fa325a8fc2
Remove CAN_OVERRIDE_APP_ID Flag
...
This cannot be used in combination with HANDLES_COMMAND_LINE
Fixes #8947
2018-03-14 22:10:44 +01:00
Yann Leboulanger
3abc50b22c
strip muc server name before discovering it. Fixes #8886
2018-03-14 21:40:52 +01:00
Philipp Hörist
956feb7ac4
Deactivate httpupload for zeroconf
2018-03-11 22:12:00 +01:00
Philipp Hörist
ca70b1d1e2
Add roster tooltip extension point
2018-03-07 22:37:02 +01:00
Philipp Hörist
1935a4f40e
Disable ZeroConf account by default
2018-03-07 20:24:08 +01:00
Philipp Hörist
3fbce77818
Add transient argument to Dialogs
2018-03-07 19:39:33 +01:00
Philipp Hörist
ce4d273dd7
Fix transients on some Dialogs
2018-03-07 19:30:12 +01:00
Philipp Hörist
4aeaf6d3bc
Raise correct dialog on account removal
...
Fixes #8941
2018-03-07 19:29:50 +01:00
Philipp Hörist
9a0faa47c8
Add logging to tooltips
2018-03-06 23:16:30 +01:00
Philipp Hörist
1ea4ff264c
Fix roster tooltip
...
Fixes #8924
Its not clear at this point why we dont find a contact is None, so log
output is added
2018-03-06 23:12:33 +01:00
Yann Leboulanger
1190b10ecd
prevent traceback when pressing tab in groupchat. Fixes #8933
2018-03-06 21:59:40 +01:00
Yann Leboulanger
14f3e041de
Use hide_groupchat_occupants_list option to decide if we show the occupant list or not. Fixes #8922
2018-03-06 21:53:38 +01:00
Yann Leboulanger
c40dfe3817
fix traceback at end of file transfer. Fixes #8932
2018-03-06 12:10:37 +01:00
Emmanuel Gil Peyrot
d2eeceb7e1
Fix standalone htmltextview.
2018-03-06 11:52:23 +01:00
Daniel
a92bca4052
Use https for OpenStreetMap URIs built from PEP
2018-03-06 11:21:09 +01:00
Daniel
a3e651b288
Handle geo:-URIs
2018-03-06 11:21:09 +01:00
Sebastian Wagner
e740d12727
Defer txt record lookup until connection attempt
...
Don't try to resolve _xmppconnect records for servers before trying to connect.
Prevent warnings from gajim.c.resolver for accounts with "connect on startup" disabled.
2018-03-05 22:55:25 +01:00
Daniel
113cd51c11
Set label of link context menu according to kind mail OR jid
2018-03-03 18:38:33 +01:00
Philipp Hörist
882be87a3b
Remove old config migrations
...
No one will ever update from these versions anymore
2018-02-28 22:38:40 +01:00
Philipp Hörist
c5f3aa169f
Set correct kind on incoming MAM messages
2018-02-28 17:58:26 +01:00
Philipp Hörist
a4bfd2fcbb
Add get_contact_strict()
...
This adds a method that returns only a contact if there is an exact match,
instead of a contact where only the barejid matches.
We need this when we update the Caps of a contact.
2018-02-26 22:24:30 +01:00
Philipp Hörist
c6e39309cf
Use MessageSentEvent to print to ChatControl
...
Its later than StanzaMessageOutgoingEvent, this allows encryption
Plugins to not return the encrypted payload immediatly.
For example encrypting may take some time because a password is needed
or the load has to be encrypted in another Thread.
2018-02-26 20:49:01 +01:00
Philipp Hörist
77be67f6a8
Only use fallback duplicate search on MAM < 2
2018-02-25 22:02:39 +01:00
André Apitzsch
c74c888506
Silence 'git unavailable' message
2018-02-25 21:35:19 +01:00
Philipp Hörist
51a4c4b5fd
MAM: Display corrected messages on MAM catchup
...
This shows corrected messages correctly in groupchat when we
receive the messages via MAM
2018-02-25 21:20:38 +01:00
Philipp Hörist
c6e7f8628d
MAM: Display received mam message in open chats
2018-02-25 21:04:34 +01:00
Philipp Hörist
12b27bf5ba
HistoryManger: Fix window dimensions
2018-02-25 20:18:46 +01:00
Philipp Hörist
a94276f6e9
Make file transfer labels sound less technical
2018-02-22 22:45:15 +01:00
Philipp Hörist
994244c910
MAM: Check muc#user namespace before we disco
...
1. Check if the message has the muc#user namespace
2. Check if we have this jid already in the DB
3. Last resort disco the jid
2018-02-22 22:03:55 +01:00
Philipp Hörist
f30564c15c
Dont notify about PMs from MUCs we are not joined
...
The server sends us carbons if one of our other resources has
a conversation in a muc we are not joined.
Instead we log the messages silently.
2018-02-22 21:42:49 +01:00
Philipp Hörist
52fa57795a
Better emoticon theme fallback strategy
...
Fallback must be happening in init_emoticon() instead of PreferencesWindow
2018-02-22 00:37:54 +01:00
Philipp Hörist
eb3a53c791
Refactor emoticon theme combobox
...
- Use ComboBoxText, its much simpler
- Add a dedicated method that returns all available themes
- If the configured Theme is not available fallback to font-emoticons
2018-02-21 23:52:53 +01:00
Philipp Hörist
1fbc6a2304
Tag MUC PMs
...
This gives the server the chance to react accordingly without applying
much logic.
Also it makes it easier for us to recognize MUC PMs in MAM querys
2018-02-21 23:09:30 +01:00
Philipp Hörist
70e0bcc5db
Pass jid as string to find_stanza_id()
2018-02-21 23:01:47 +01:00
Philipp Hörist
015d99ea63
Print correct archive jid in log message
2018-02-21 22:21:35 +01:00
Philipp Hörist
0c7f1937cf
Fix duplicates for self messages and MUC PMs
...
Fixes #8812
2018-02-21 22:09:13 +01:00
Philipp Hörist
17fc8ff927
Limit deduplication to correct archive
...
We limit the search to non-groupchat messages because a stanza id
is only unique within an archive
2018-02-21 19:23:26 +01:00
Philipp Hörist
d6bfea1b19
Add extension point for GC tooltip
2018-02-20 22:51:28 +01:00
Philipp Hörist
27ffae2af4
Fix MessagTextview height
...
On some Desktops eg. Mate, the MessageTextview was to big, because
the default height seems to be 82.
What influences the default height (compare Windows where it is 46),
is unclear.
2018-02-20 22:03:57 +01:00
Philipp Hörist
64d743de3e
StatusIcon: Add fallback for account label
...
Fixes #8901
2018-02-19 22:02:40 +01:00
Philipp Hörist
618b0b87c2
Add --start-chat command
2018-02-19 22:02:40 +01:00
Philipp Hörist
c5de08d45f
StartChatDialog: Use HighDPI icons/avatars
2018-02-19 22:02:40 +01:00
Philipp Hörist
f1aceae214
Fix avatar ratio
...
Fixes #8907
2018-02-19 22:02:31 +01:00
Philipp Hörist
828e969d23
Simplify cellrenderers
...
- Makes it better understandable
- Fixes a bug where an avatar was drawn in a group row
- Fixes not all cells getting the same background color while using a theme
2018-02-18 02:00:43 +01:00
Yann Leboulanger
be02828861
update Gajim version to 0.99.2
2018-02-17 18:54:18 +01:00
Yann Leboulanger
4149bcacb9
add index on stanza_id column to speed up de-duplication when syncing logs
2018-02-17 18:37:22 +01:00
Philipp Hörist
958c898ed1
Dont mutate THANKS constant
2018-02-16 21:44:12 +01:00
Philipp Hörist
d0cdc06803
Make string translatable
2018-02-16 21:36:24 +01:00
Philipp Hörist
fc007fc68f
StatusIcon: Set account name correctly
...
Fixes #8901
2018-02-16 20:55:28 +01:00
Philipp Hörist
075ceacf49
VCard Window: fix URI
...
Fixes #8902
2018-02-16 20:48:22 +01:00
Philipp Hörist
a4f08b3bfe
Parse uri with message action correctly
...
Fixes #8894
2018-02-14 21:11:25 +01:00
Philipp Hörist
a2caafa72c
Dont show avatars as Window icon
...
Avatars are now Surfaces, Gtk.Window has no method yet to add Surfaces
as icons.
Transforming them back to pixbufs is not viable because pixbufs cant hold
the scale information, and we have no way to set it.
This was only used with single chat windows, which is a mode that came
out of style and is probably not used often anymore.
Fixes #8895
2018-02-14 20:10:56 +01:00
Sebastian Wagner
8b8ffae89a
Join Groupchat Dialog use_underline for headerbar Join button mnemonic
...
https://valadoc.org/gtk+-3.0/Gtk.Button.set_use_underline.html
2018-02-13 20:49:48 +01:00
Philipp Hörist
b26ba9aa67
Port show-next-pending-event from gajim-remote
...
Delete some already ported methods
2018-02-13 19:25:01 +01:00
Philipp Hörist
877b754ef3
Simplfy writing to config file
...
- use `with` statement and open() instead of os.open()
- execute run() on dialog, otherwise sys.exit() is called immediatly
2018-02-12 23:39:50 +01:00
Philipp Hörist
fb4b262477
Dont use getTimestamp()
...
getTimestamp() generates always a timestring with a resolution of seconds and
this means time gets always rounded down.
Because we use a resolution of .00000 precision for outgoing messages this
can lead to wrongly sorted messages.
2018-02-12 21:27:55 +01:00
Link Mauve
c02af8f517
Fix data form window space usage
2018-02-12 12:34:00 +01:00
Philipp Hörist
f47ea05b79
Read config files with UTF-8
2018-02-10 18:59:34 +01:00
Philipp Hörist
5d2c2e955f
0.99.1
2018-02-08 21:33:06 +01:00
Philipp Hörist
05d1a9e398
Raise nbxmpp version
2018-02-08 21:30:50 +01:00
Philipp Hörist
7479bd8bd6
Refactor getting avatars from pubsub
...
- use SendAndCallForResponse instead of triggering an Event
- validate iq result even more, it didnt print iq errors before
2018-02-08 21:06:23 +01:00
Philipp Hörist
7b1bdc5591
Merge branch 'history-navigation' into 'master'
...
Add navigation for chat history
See merge request gajim/gajim!202
2018-02-08 17:34:19 +01:00
Philipp Hörist
4bbc6b1972
Fail gracefully on invalid MAM GC Stanza
...
Fixes #8883
2018-02-07 19:20:19 +01:00
Daniel
b0bf74337c
Add navigation for chat history
2018-02-07 10:04:56 +01:00
Philipp Hörist
624a2c5cbc
Merge branch 'keyring' into 'master'
...
Use keyring module to also handle password storage on linux
See merge request gajim/gajim!206
2018-02-06 20:52:44 +01:00
Philipp Hörist
1e8304755f
Convert xmpp uris not to GFiles
...
We dont need to use the ::open handler to handle xmpp uris
2018-02-06 20:41:24 +01:00
Philipp Hörist
1f3a321112
Add Gajim version to exception output
2018-02-05 21:00:28 +01:00
Philipp Hörist
4a65f4aeae
Fix StartChatDialog
...
Fixes #8881
2018-02-05 20:55:48 +01:00
André Apitzsch
f1e95825c6
Migrate config for new password identifier + version bump
2018-02-04 17:02:02 +01:00
André Apitzsch
0d37609d8a
PasswordStorageManager: remove unused member
2018-02-03 22:13:43 +01:00
André Apitzsch
d0f4ebd0bc
Use keyring module to handle password storage
2018-02-03 20:32:37 +01:00
Philipp Hörist
d8020f18a1
Correctly handle cmdline args for remote instance
2018-02-03 09:36:21 +01:00
Philipp Hörist
9ed0edf331
Port ipython command from gajim-remote
2018-02-02 00:21:27 +01:00
Philipp Hörist
258c7922a5
Dont set Avatar if there is none
...
Fixes #8878
2018-01-30 23:40:15 +01:00
Philipp Hörist
6deedb1743
Only use logind listener on linux
2018-01-29 23:12:58 +01:00
Philipp Hörist
4f73b03d36
Remove unused method
2018-01-29 20:08:37 +01:00
Philipp Hörist
c5c717ddd1
Use IconTheme for some icons
2018-01-29 20:02:30 +01:00
Philipp Hörist
762617e0be
Use icons from IconTheme for Groupchat Roster
2018-01-29 00:06:46 +01:00
Philipp Hörist
e19f7ef9b6
Use icons from IconTheme in TransformChatToMUC
2018-01-29 00:06:46 +01:00
Philipp Hörist
4f92142d09
Use icons from IconTheme in Dialogs
2018-01-29 00:06:46 +01:00
Philipp Hörist
2c2e946a88
Use icons from IconTheme in HistoryWindow
2018-01-29 00:06:46 +01:00
Philipp Hörist
cb90d46996
Use icons from IconTheme for StatusIcon
2018-01-29 00:06:40 +01:00
Philipp Hörist
dd12584fe6
Use icons from IconTheme for ChatControl Banner
...
It will correctly scale on HiDPI Displays if we set it like that
2018-01-29 00:06:32 +01:00
Philipp Hörist
adb326a5f2
Refactor StatusComboBox
...
- Move as much code as possible into Glade file
- Pull icons from the IconsTheme (because of HiDPI scaling)
2018-01-29 00:06:31 +01:00
Philipp Hörist
749fcc1b48
Set enryption icon correctly
2018-01-29 00:06:31 +01:00
Philipp Hörist
c983b1f50d
Set padlock icon correctly
2018-01-29 00:06:31 +01:00
Philipp Hörist
232dc1dda0
Scale Avatars for HiDPI Screens
2018-01-29 00:06:31 +01:00
Philipp Hörist
440b6e4829
Move icons to hicolor folder
...
also add svg images for scaling
2018-01-29 00:06:21 +01:00
Philipp Hörist
5ce0c65ce4
Move chat options menu
...
Putting it into the header forced GTK Window Decorations, that makes
the application look alien on all systems except Gnome.
2018-01-28 20:39:02 +01:00
Philipp Hörist
c609d3c5ae
Merge branch 'removeCmp' into 'master'
...
Remove cmp_to_key functions
See merge request gajim/gajim!197
2018-01-27 17:27:53 +01:00
Philipp Hörist
8bf3a179df
Merge branch 'logind' into 'master'
...
Logind listener: make string translatable
See merge request gajim/gajim!200
2018-01-27 17:26:42 +01:00
Philipp Hörist
36f23c9cf2
Update httpupload action on discovery
2018-01-27 10:55:25 +01:00
Philipp Hörist
afc3075415
Refactor adding actions to chat windows
2018-01-27 10:29:52 +01:00
Philipp Hörist
b8a62a8bb2
Fix shortcuts in chat window
...
Fixes #8873
2018-01-27 08:44:11 +01:00
André Apitzsch
28749a7989
Remove cmp_to_key functions
2018-01-27 00:21:53 +01:00
André Apitzsch
6f20e5e6e3
Logind listener: make string translatable
2018-01-27 00:20:53 +01:00
Philipp Hörist
7dacd51c1d
Add complex caps test
2018-01-26 23:57:32 +01:00
Philipp Hörist
4c545be737
Inlcude account for message deduplication
...
It was not possible to write with 2 different accounts into the
same MUC
2018-01-25 00:47:00 +01:00
André Apitzsch
137b69c045
MusicTrackListener: remove unused code
2018-01-24 23:28:56 +01:00
André Apitzsch
7d2bbf92c5
MusicTrackListener: add support for clementine
2018-01-24 23:28:24 +01:00
Philipp Hörist
8cdad276bf
Fix httpupload when using multiple accounts
...
Fixes #8865
2018-01-24 17:05:41 +01:00
Bronko
3a3be94aa8
integrate httpupload plugin into gajim core
...
add new config option 'filetransfer_preference'
add drag and drop support for file upload
2018-01-22 17:29:27 +01:00
Philipp Hörist
c23af9c9e7
Merge branch 'translation' into 'master'
...
Add translation for corrected messages
See merge request gajim/gajim!198
2018-01-22 17:16:13 +01:00
Daniel
3ee3ce67ca
Add translation for corrected messages
2018-01-22 11:55:32 +01:00
André Apitzsch
e78b676784
Update copyright
2018-01-21 23:34:19 +01:00
Philipp Hörist
71fb3d0b4f
Improve network speed on Windows
...
Call select.select() with the smallest timeout possible
2018-01-21 21:52:32 +01:00
Philipp Hörist
4aadc00bd6
Revert "Improve speed of Windows client"
...
This reverts commit 45e3139bd0
2018-01-21 20:45:32 +01:00
Philipp Hörist
45e3139bd0
Improve speed of Windows client
...
This calls on each mainloop cylce select.select() instead of every
20 ms.
2018-01-20 23:21:39 +01:00
André Apitzsch
c473fa6110
location_listener: location update notifier requires three parameters
...
the third parameter contains the location parameter specification
2018-01-19 01:52:58 +01:00
Philipp Hörist
1605b722b7
Merge branch 'fixTest' into 'master'
...
Fix tests
See merge request gajim/gajim!192
2018-01-19 00:33:43 +01:00
André Apitzsch
5395bb1c79
logind_listener: fix TypeError
2018-01-19 00:20:47 +01:00
Matthew W. S. Bell
52482ec70d
Use with_unix_fd_list variant of DBus method call.
...
Any returned 'h' type argument is intended to be an index into a
unix fd list structure obtained separately. Such a unix fd list, in
python, will manage and close any contained fds as a whole, or fds may
be retrieved, managed, and closed individually, as is done in this
patch.
Also, use None instead of -1 because python.
This patch means gajim keeps its supsend inhibitor open and stops it
closing stdin on suspend.
Fixes #8852
2018-01-18 18:23:00 +01:00
Philipp Hörist
5ef1813405
Fix parsing MAM IQs
...
prosody includes the supplied queryid in the `<fin>` tag, but this is not XEP compliant.
We set the queryid attr so we can match the MAM Messages to our query.
Thats the only purpose, it is not used to identify the iq result at the end of the query.
For that purpose is the `id` attr on the `<iq>` node.
So dont try to parse `queryid` from the `<fin>` tag.
2018-01-17 23:57:49 +01:00
Philipp Hörist
67a008ea80
Improve ExceptionDialog
...
- Add OS/System info to report text
- Use ApplicationWindow
- Supply all the infos directly to gitlab via url params
2018-01-17 23:57:49 +01:00
André Apitzsch
06b8eb58e5
Fix tests
2018-01-17 22:36:14 +01:00
Daniel
dcfa252602
Fix accidently translated strings
2018-01-17 21:15:14 +01:00
Yann Leboulanger
b3a805c58a
Merge branch 'more-translations' into 'master'
...
Make more strings translatable
See merge request gajim/gajim!186
2018-01-15 11:16:26 +01:00
Daniel
792be24540
Make more strings translatable
2018-01-15 10:51:04 +01:00
Yann Leboulanger
a01bbb5111
Merge branch 'script' into 'master'
...
Use setuptools' automatic script creation
See merge request gajim/gajim!188
2018-01-15 10:02:52 +01:00
André Apitzsch
7943120b25
Use setuptools' automatic script creation
2018-01-13 22:50:38 +01:00
André Apitzsch
6f025a1d4a
Remove some unused imports
2018-01-12 00:21:11 +01:00
Yann Leboulanger
aa6e9e7084
improve string and add comment for translators
2018-01-09 10:31:50 +01:00
Yann Leboulanger
54146ba63d
Merge branch 'screensaver' into 'master'
...
Port screensaver listening to GTK dbus
Closes #8836
See merge request gajim/gajim!183
2018-01-08 15:27:34 +01:00
André Apitzsch
0ddff9c2a9
Fix string for a better translation
2018-01-08 00:24:17 +01:00
André Apitzsch
e89e7c3123
Port screensaver listening to GTK dbus
2018-01-05 23:33:37 +01:00
André Apitzsch
5f0dc56faa
Remove obsolete file
2018-01-05 00:24:20 +01:00
André Apitzsch
81a039854f
Port music_track_listener to GTK dbus
2018-01-04 21:49:16 +01:00
Philipp Hörist
84aa61335f
HtmlTextView: Fix some things
...
- Only pass args to logging function
- Dont use 'size' as global var, its again used later in methods
- Fix a missing arg in __parse_font_size_cb()
2018-01-04 18:04:56 +01:00
Philipp Hörist
d3890585f6
Refactor css font size parsing
...
- Get rid of deprecated Gdk.Screen methods
- remove support for 'ex' unit - not easily correct implemented and not commonly used
Fixes #8491
2018-01-04 00:08:12 +01:00
Philipp Hörist
32e873e6eb
Add ALPN Support
2018-01-03 22:11:42 +01:00
Philipp Hörist
b1d45ec008
Fix config encoding
...
Fixes #8834
2018-01-02 23:55:26 +01:00
Philipp Hörist
b8fd8c8a3f
Catch exception when parsing avatars
...
If the VCard contains a <PHOTO/> tag this is parsed as {'PHOTO': ''}
this throws: TypeError: string indices must be integers
2017-12-29 20:14:59 +01:00
Philipp Hörist
361ad92b26
Remove unused code
2017-12-29 19:08:05 +01:00
Philipp Hörist
1d835fbfd7
Raise nbxmpp version
2017-12-28 18:10:26 +01:00
Philipp Hörist
ccc69bc7ee
Fix LMC in Groupchats
2017-12-28 17:37:37 +01:00
Philipp Hörist
d3333ba9d9
Merge branch 'xep_0368' into 'master'
...
Add support for XEP-0368
See merge request gajim/gajim!177
2017-12-27 22:10:26 +01:00
Philipp Hörist
8ea39cff75
Add 'active' chatstate to groupchat messages
...
Fixes #8801
2017-12-27 19:09:12 +01:00
Philipp Hörist
1b2ab928f0
Fix focus after destruction of StartChatDialog
...
On destroy() the window that was last focused gets the focus
again. if destroy() is called from the StartChat Dialog, the new
ChatControl is not yet focused, because present() seems to be asynchron,
at least on KDE, and takes time.
2017-12-26 21:55:19 +01:00
Philipp Hörist
23de7d5331
Use higher level API to focus windows
...
set_active_tab() already calls present(), no need to call it afterwards
again
2017-12-26 21:55:19 +01:00
Philipp Hörist
fd7f302044
Merge branch 'master' into 'master'
...
Refactor some Tooltips
See merge request gajim/gajim!180
2017-12-24 08:40:04 +01:00
Philipp Hörist
8116ef1316
Refactor GCTooltip
...
- Dont create a Tooltip window
- Just return the tooltip grid, so we can use it with set_custom()
2017-12-23 22:04:54 +01:00
Philipp Hörist
bc5d9c76b1
pep8/pylint: Fix imports
2017-12-23 22:04:54 +01:00
Philipp Hörist
2a41c7198f
Remove BaseTooltip
...
We dont needed anymore
2017-12-23 22:04:54 +01:00
Philipp Hörist
912192ed41
NotificationAreaTooltip: Dont inherit from BaseTooltip
2017-12-23 22:04:54 +01:00
Philipp Hörist
9db9e69c35
Refactor FileTransferWindow tooltip
2017-12-23 22:04:49 +01:00
Yann Leboulanger
c3369f0304
ability to call ad hoc commands on groupchats and groupchats occupants.
...
Fixes #8819
2017-12-22 12:21:57 +01:00
Philipp Hörist
ed0e2dd82b
Merge branch 'plain_connection_dialog_fix' into 'master'
...
Dialogs: Use get_widget_for_response() to access buttons
See merge request gajim/gajim!178
2017-12-20 20:45:48 +01:00
Marc Schink
8e09fd9272
Add support for XEP-0368
...
- Use xmpps-client SRV records
- Use separate host entry per connection type
- Replace 'connection_types' with 'allow_plaintext_connection' option
2017-12-20 18:38:01 +01:00
Marc Schink
65bc965918
dialogs: Use get_widget_for_response() to access buttons
...
The get_action_area() API is deprecated and under some circumstances
the wrong button gets accessed.
2017-12-19 22:23:27 +01:00
Philipp Hörist
e7df2d93b6
HistorySync: Fix first time sync
...
Fixes #8810
Also remove mam_start_date migration.
mam_start_date didnt exist in Gajim 0.16.x and it doesnt hurt
if people who used the dev version download some extra messages.
Our deduplication algorithm should take care of it.
2017-12-19 21:12:07 +01:00
André Apitzsch
f3bde561a3
GUI interface: fix resource warning
2017-12-18 23:14:22 +01:00
André Apitzsch
8b960238a6
Zeroconf: fix unexpected keyword argument
...
_update_status() got an unexpected keyword argument 'idle_time'
introduced by 28917aaf56
2017-12-18 22:52:06 +01:00
André Apitzsch
0ffd7b6907
Zeroconf: Fix get_own_jid()
2017-12-18 22:16:22 +01:00
Yann Leboulanger
53a92bdee8
add get_own_jid method to ConnectionZeroconf. Fixes #8809
2017-12-18 14:44:38 +01:00
Philipp Hörist
c18ef648e6
Replace deprecated get_background_color()
2017-12-18 00:25:19 +01:00
Philipp Hörist
bdf16c5182
Replace deprecated override_background_color()
2017-12-18 00:11:39 +01:00
Philipp Hörist
f4a6b0299a
Remove deprecated Gdk.Screen methods
...
height() and weidth() is not supported any more
2017-12-17 22:30:16 +01:00
Philipp Hörist
e3effdcb6c
Refactor SubscriptionWindow
2017-12-17 22:30:16 +01:00
Philipp Hörist
80ceee57af
Remove unused methods
...
Action Button was removed in the last ChatControl redesign
2017-12-17 22:30:16 +01:00
Yann Leboulanger
ec2da20f58
add transient_for parameter
2017-12-17 18:41:49 +01:00
Philipp Hörist
0959bd44c8
Merge branch 'master' into 'master'
...
Remove incorrect assert
See merge request gajim/gajim!171
2017-12-17 18:01:44 +01:00
Philipp Hörist
1b11d77034
MAM: Dont convert own_jid to string
...
We need it later as JID object
2017-12-17 17:56:11 +01:00
Philipp Hörist
65593c613c
Fix undefined var
2017-12-17 17:34:22 +01:00
Philipp Hörist
9411ccd827
Fix DB migration for additional_data
2017-12-17 17:10:00 +01:00
Philipp Hörist
2c4c610632
Make sure our own JID is in the DB
2017-12-17 13:48:32 +01:00
Philipp Hörist
dfafedc21f
Remove unused DB fields
...
This field was added but never used
This does not remove the columns from the DB, but doesnt add them
in new migrations.
2017-12-17 12:00:15 +01:00
Philipp Hörist
2001cf4a17
Update version to 0.98.2
2017-12-17 11:56:04 +01:00
Philipp Hörist
020d4754df
Add correct DB migration
...
Fixes #8806
2017-12-17 11:55:38 +01:00
Philipp Hörist
410aee7ba0
Fix typo in DB migration
2017-12-17 11:34:54 +01:00
Philipp Hörist
ba54c304e8
Add GTK+ version check on start
2017-12-16 23:20:37 +01:00
Apromixately
b8fe0e20c3
Remove incorrect assert
...
When a ping reply is received there is probably a connection. Anyway, the
last ping might have been lost and the ids might not match up.
2017-12-16 16:23:44 +01:00
Philipp Hörist
a344a94102
Fix chatstate flood
...
The new Placeholder text inside MessageTextView was causing many
buffer changed events.
- Add a method that lets us know if there is user input
- Add logging
2017-12-15 23:00:15 +01:00
Yann Leboulanger
3764567c10
update version number for 1.0.0-alpha1 release
2017-12-15 22:29:31 +01:00
Emmanuel Gil Peyrot
0707f1a27c
Fix xmpp: URI handling.
...
It was previously removing the first three characters of the JID, and
ignored any URI without an action.
2017-12-15 02:40:53 +01:00
Philipp Hörist
4009625e02
Catch invalid URIs
2017-12-14 20:19:12 +01:00
Emmanuel Gil Peyrot
f4cae17d9f
Remove support for AWN, which isn’t maintained anymore
2017-12-13 23:19:16 +01:00
Yann Leboulanger
4e7fcea288
Merge branch 'logind' into 'master'
...
Port logind_listener to GTK dbus
See merge request gajim/gajim!167
2017-12-13 21:57:57 +01:00
Yann Leboulanger
a39d68d4ae
when internet connection is back, only connect accounts that were
...
connected before connection broke
2017-12-11 21:13:53 +01:00
Philipp Hörist
f8ddefb6da
Fix var reference
2017-12-10 22:56:20 +01:00
Philipp Hörist
7815ce19a5
Dont use callbacks when sending messages
...
Using a callback to display a sent message inside the ChatControl means
that all messages we send have to be issued from the GUI layer
(send_message()) if we want them to display in the ChatControl.
This replaces the callback and catches the stanza-message-outgoing event
after it was processed by the core.
This is easier to read/understand than dealing with callbacks and lets
the core issue messages without having to care if a ChatControl is open or not
2017-12-10 18:56:29 +01:00
André Apitzsch
5364c1980c
Port logind_listener to GTK dbus
2017-12-09 15:04:15 +01:00
André Apitzsch
be32d9afe6
Remove upower_listener
...
the 'Sleeping' signal has been removed from UPower about four years ago
https://cgit.freedesktop.org/upower/commit/src/org.freedesktop.UPower.xml?id=1ee642e705a63f5ad56a6b55e4bf5c4a64c959b8
2017-12-09 00:34:47 +01:00
Philipp Hörist
786ef96400
Port InformationEvent handling to new interface
2017-12-09 00:15:26 +01:00
Philipp Hörist
6926bdaee0
Port some error messages to new interface
2017-12-08 20:20:07 +01:00
Philipp Hörist
61ad783658
Add new interface to raise dialogs
2017-12-08 19:50:48 +01:00
pitchum
cb7eba562d
Bugfix in printing fuzzy time.
2017-12-06 21:44:13 +01:00
Philipp Hörist
f724359c2b
Raise required nbxmpp version
2017-12-05 17:25:17 +01:00
Philipp Hörist
beb9fa2f17
Merge branch 'location' into 'master'
...
Get location with GeoClue2
Closes #8772
See merge request gajim/gajim!164
2017-12-05 17:10:51 +01:00
André Apitzsch
2aab433932
Get location with GeoClue2
2017-12-04 21:00:20 +01:00
Philipp Hörist
feaf9df0cf
Remove xmpp uri handling from gajim-remote
2017-12-04 17:06:24 +01:00
Philipp Hörist
38944331b3
Handle ?message uris
2017-12-04 00:20:18 +01:00
Philipp Hörist
1afd4f0e72
New StartChat Dialog
2017-12-03 23:58:02 +01:00
Philipp Hörist
010b166fd2
Handle ?roster uris
2017-12-03 23:58:02 +01:00
Philipp Hörist
ace904573a
Add new Join Groupchat dialog
...
- Complete rewrite of the old Groupchat dialog
- Has now a "minimal" mode, which is used if we have all infos for joining except the nickname and if we want to bookmark
- Handle xmpp uris received via command line
2017-12-03 23:58:02 +01:00
Philipp Hörist
d814a42345
Remove old JoinGroupchat dialog
2017-12-03 23:58:02 +01:00
Philipp Hörist
553ba9e59f
Dont preserve aspect ratio when loading an avatar
...
Clients should only upload square sized avatars
2017-12-03 23:58:02 +01:00
Philipp Hörist
47f1f41977
Dont use mutable objects as default arguments
2017-12-03 15:34:33 +01:00
Yann Leboulanger
086eeb3dc8
resolve TXT record only for non-zeroconf accounts. Fixes #8792
2017-12-03 14:55:41 +01:00
Andrey Gursky
5a28322e6a
Fix appearance of status icon in MATE
...
Tested in Debian testing (Buster) with gtk2 based MATE 1.12,
gtk3 based 1.16 and 1.18.
Moreover the used environment variable is depreacated already in 1.12:
$ echo $MATE_DESKTOP_SESSION_ID
this-is-deprecated
Fixes #8757
2017-11-30 23:30:48 +01:00
Yann Leboulanger
eb764fa1af
refactor the way we call SQL
2017-11-30 22:45:21 +01:00
Yann Leboulanger
79ba81825d
better parse of version in config file in case old sha version of git is
...
used (-xyz instead of +xyz)
2017-11-30 17:19:17 +01:00
Yann Leboulanger
46711e1107
Merge branch 'XEP-156' into 'master'
...
implement XEP-0156
Closes #5795
See merge request gajim/gajim!154
2017-11-29 14:25:49 +01:00
Philipp Hörist
b3ef0d6196
Catch ValueError on Gspell import
2017-11-26 01:11:19 +01:00
Philipp Hörist
7692b376ee
Refactor SpellChecker
...
- use Gspell instead of GtkSpell, it seems to have alot less problems
and needs less code
2017-11-26 00:44:50 +01:00
Emmanuel Gil Peyrot
cdf4d0ee69
Also log the offending JID on avatar decoding issue
2017-11-25 17:37:48 +00:00
Philipp Hörist
fc627fc19c
Use appmenu only if system supports it
2017-11-24 18:54:30 +01:00
Philipp Hörist
276daa991c
Correctly split version string
...
We changed the version format
2017-11-24 16:49:30 +01:00
Philipp Hörist
9322ed4405
Show missing dbus message only on Linux
...
Mac and Windows dont have dbus available
2017-11-24 16:28:22 +01:00
André Apitzsch
f97b799f9a
Fix invalid dev version string
2017-11-23 00:22:40 +01:00
Yann Leboulanger
d86c7f47f5
lower debug level for unresolved host.
2017-11-22 14:57:08 +01:00
Philipp Hörist
7ec57e4dab
Lower debug level for malformed avatar stanzas
2017-11-22 14:53:32 +01:00
Yann Leboulanger
149edfe3ef
implement XEP-0156. Fixes #5795
2017-11-20 21:31:29 +01:00
Yann Leboulanger
84af966a87
prevent traceback
2017-11-20 21:18:32 +01:00
Philipp Hörist
1c895e8983
Persist resource across sessions
...
This was somehow lost once we implemented random resource strings
Although its good that initally a random resource is chosen, it
still should persist across sessions.
This helps to kill zombie client connections on the server because
most servers kill the old session once a new with the same resource
connects
Also dont notify the user about resource conflicts if no custom
resource is set. We should not expect users to know about resources
and what they are used for as long as possible.
2017-11-20 18:10:51 +01:00
Philipp Hörist
c45d0f5b27
Query MUC archives with the correct namespace
2017-11-19 23:45:03 +01:00
Philipp Hörist
3683f23877
Merge branch 'master' into 'master'
...
Add MAM for MUCs
See merge request gajim/gajim!152
2017-11-19 23:14:10 +01:00
Philipp Hörist
7f1776ede9
Improve deduplication
...
A stanza-id is only unique within a specific archive
This adds the archive jid to the query
2017-11-19 19:36:26 +01:00
Philipp Hörist
cac1185a23
Remove log message
2017-11-19 19:36:26 +01:00
Philipp Hörist
44bb8e374d
Request one day history when first joining MUCs
2017-11-19 19:36:26 +01:00
Philipp Hörist
51c0a05ac9
Parse from jid correctly
2017-11-19 19:36:26 +01:00
Philipp Hörist
f57ec2fa34
Move common code out of HistoryWindow
...
- move it into message_archiving.py
2017-11-19 19:36:26 +01:00
Philipp Hörist
40f537cda9
Save last archive timestamps in DB
...
- A Migration from last_mam_id config value is included
2017-11-19 19:36:26 +01:00
Philipp Hörist
95357361bf
Save account_id in logs table
2017-11-19 19:36:25 +01:00
Philipp Hörist
a07470a7d2
Add new DB methods
2017-11-19 19:36:25 +01:00
Philipp Hörist
9759dcf152
Add account_id column to logs table
...
When we search for duplicated stanza-ids we have to do it
in the context of an account
2017-11-19 19:36:25 +01:00
Philipp Hörist
52827c6add
Add new DB table last_archive_message
2017-11-19 19:36:25 +01:00
Philipp Hörist
536a504f69
Remove Support for mam:0
2017-11-19 19:36:25 +01:00
Philipp Hörist
75b1d54b4c
Add MAM for MUCs
2017-11-19 19:36:20 +01:00
Yann Leboulanger
b66311532f
Merge branch 'new_visible_func' into 'master'
...
New visible func
Closes #8670
See merge request gajim/gajim!153
2017-11-19 18:00:26 +01:00
Yann Leboulanger
0b2e558834
Take into account show_transports_group option to show transports
2017-11-19 17:56:13 +01:00
Yann Leboulanger
7724dd181b
New visible func faster and cleaner. Fixes #8670
2017-11-19 17:54:33 +01:00
Philipp Hörist
24320c894c
Remove unused code
2017-11-19 14:34:04 +01:00
Philipp Hörist
f7bb9c8a33
Merge branch 'networkmonitor' into 'master'
...
Use Gio.NetworkMonitor for reconnecting
See merge request gajim/gajim!149
2017-11-18 22:09:35 +01:00
Yann Leboulanger
639f0db164
Merge branch 'symbolic' into 'master'
...
Add symbolic icon
See merge request gajim/gajim!151
2017-11-18 21:11:19 +01:00
Annika Sommer
86f5953e2b
MUC: Improve error messages
...
Distinguish between 'item-not-found' and 'remote-server-not-found'
Fixes #8749
2017-11-18 18:10:10 +01:00
Philipp Hörist
c1c2a92efc
Init Plugins and Caps after Roster
...
- Some plugins do not depend on gui extension points and need the
roster to be initialized
2017-11-18 11:11:47 +01:00
André Apitzsch
566b5370e6
Add symbolic icon
2017-11-17 23:04:05 +01:00
Philipp Hörist
a80f41e2bf
Support unpublishing avatars (with XEP-0084)
...
- Add more logging
2017-11-17 19:19:59 +01:00
Philipp Hörist
9f0154ef84
Add caps to first presence
...
According to the XEP, caps hash has to be added to all presences
2017-11-15 22:28:57 +01:00
Philipp Hörist
d5ddbe3766
Add extension point for plugins to add their caps
2017-11-15 22:28:11 +01:00
Philipp Hörist
775fec2fea
Dont activate plugins in PluginManager init
...
Plugins maybe want to use in their activation Gajim methods that
use an extension point. But because the PluginManager Object is not fully
initialized, the extension point method is not available yet
First create the PluginManager Object, then load Plugins.
2017-11-15 22:26:55 +01:00
Philipp Hörist
0fe78daae8
Init PluginManger earlier
...
- Plugins need the possibility to add caps before Gajim updates them
2017-11-15 21:57:15 +01:00
Philipp Hörist
e8004084fb
Use Gio.NetworkMonitor for reconnecting
...
- This uses also NetworkManager, but also other more low level interfaces
on linux
- This should work cross-platform
- Leave network_watcher.py for now, because it shows how
to use the Gtk dbus interface
2017-11-12 23:53:03 +01:00
Philipp Hörist
5236693df9
Parse stanza-id in groupchat correctly
2017-11-11 21:46:00 +01:00
Philipp Hörist
309e844b4e
Escape account label in roster and menus
2017-11-11 17:10:31 +01:00
Philipp Hörist
d19e87eb7b
Fix showing normal message event
...
Regression introduced in 9b866fd1a0
2017-11-10 18:09:36 +01:00
Philipp Hörist
947106bb66
Catch more errors on vCard request
2017-11-09 20:57:03 +01:00
Philipp Hörist
6e91a05590
vCard: Handle IQ error and change logging level
2017-11-08 23:58:25 +01:00
Philipp Hörist
35d2beae74
Logger: only search if ids are available
2017-11-08 22:27:37 +01:00
Philipp Hörist
47f4838c7c
Fix typo and logging arg
2017-11-07 22:56:15 +01:00
Philipp Hörist
d4fdf0d7c1
Shorten search intervall for MAM messages
2017-11-07 20:39:45 +01:00