Commit Graph

23 Commits

Author SHA1 Message Date
Philipp Hörist 020e4e0308 Name method more appropriate 2017-05-18 21:45:31 +02:00
Philipp Hörist 3335482345 Add 'encryption' config options group
We have to save the value per account and contact, because otherwise
it could lead to problems if a jid is added to more than one account.

As key this uses a string in the form of 'Account-BareJid'.

The config option group 'contacts' is not used because there are values
like 'speller_language' that make more sense to set on a Jid basis, rather than a
Account-Jid basis.

Treat an empty config value or no config value as 'disabled', instead
of writing a config value of 'disabled'. This has the benefit that we
dont have to write config values for contacts were we dont use encryption.
2017-05-18 21:42:40 +02:00
Philipp Hörist 2e148a6133 Add encryption API to groupchat_control 2017-05-07 18:40:09 +02:00
Philipp Hörist cf07022cbd Remove ESessions encryption/decryption from core 2017-05-07 18:40:05 +02:00
Philipp Hörist 5116af037b Add Encryption Plugin API
- Add extension points when receiving/sending a message
- Add extension point for setting the lock image
- Add extension point after clicking the send button
- Add extension point when typing
- Add a new menu button to choose the desired encryption
- Extend the PluginManager to hold a list of encryption plugins
2017-05-07 18:38:06 +02:00
Philipp Hörist 37a313701c Fix exception when minimizing a groupchat 2017-05-06 11:29:23 +02:00
Philipp Hörist 2cd6634c0e Dont show warning on missing 0184 receipt
https://xmpp.org/extensions/xep-0184.html#what tells us that we
SHOULD NOT impute any meaning to the fact that we did not receive an ack message
2017-05-01 19:42:57 +02:00
Philipp Hörist e02798dc19 Dont send chatstates to own resources 2017-05-01 17:52:19 +02:00
Emmanuel Gil Peyrot f6739730af Implement chatstate in MUC, as defined in XEP-0085 §5.5. 2017-04-14 16:58:04 +01:00
Philipp Hörist 8547d2b4f9 Simplify scrolling in conversation textview 2017-03-11 22:11:02 +01:00
Philipp Hörist 1e06db9fa6 Remove smooth scrolling
GTK3+ does smooth scrolling in ScrolledWindows on its own
2017-03-11 22:11:01 +01:00
Markus Böhme f1ee561b9b Fix broken command system by importing CommandContainer modules
ChatControlBase was split from ChatControl into its own module in commit
80221afc2c. With this split the import of the CommandContainer modules
was removed as well, likely because their members are not referenced
anywhere. However, importing these modules even when they are not used
directly is crucial because the contained CommandContainers are only
registered with the command system when their definitions are evaluated.

Import the modules with CommandContainers in chat_control_base.py to fix
the command system. Also add a comment stating more clearly why the
imports need to be kept around.
2017-03-07 16:46:12 +01:00
Philipp Hörist 0abb26ae36 Dont use depracted override_font() 2017-03-03 00:11:23 +01:00
Philipp Hörist 9ecabd561e Dont use depracted override_color() 2017-03-03 00:00:22 +01:00
Philipp Hörist e00341e83e Dont use depracted override_background_color() 2017-03-02 23:58:21 +01:00
Emmanuel Gil Peyrot 57fb80f1fa Remove every default argument using [] or {}. 2017-02-11 02:40:07 +00:00
Yann Leboulanger d338572271 Update strings for better english. Thanks to Allan Nordhøy for the suggestions 2017-02-04 23:29:45 +01:00
Tomasz Miąsko b678165d7d Use the same code path for shift-enter as for ctrl-enter. 2017-01-25 18:04:12 +01:00
Tomasz Miąsko 0b7d6cc175 Fix moving between lines with up and down arrows. 2017-01-25 17:05:49 +01:00
Tomasz Miąsko ffeeb8f9f5 Simplify send or insert newline logic. 2017-01-25 17:05:49 +01:00
Tomasz Miąsko 18a3258cb5 Fix inserting a newline on shift-enter.
Return false from key-press-event to propagate event to a default
handler that will insert a newline into the entry widget.
2017-01-25 17:05:49 +01:00
Philipp Hörist 277e13bdd8 Handle Exception when there is no KEY_Insert
This happens on MacOSX
2017-01-05 01:14:18 +01:00
Emmanuel Gil Peyrot 80221afc2c Split ChatControlBase into its own file. 2017-01-04 22:57:05 +00:00