Commit Graph

1261 Commits

Author SHA1 Message Date
Yann Leboulanger 5194387338 put gajim application log file in application data/gajim folder. Fixes #4832 2009-03-01 13:12:38 +00:00
Yann Leboulanger 5834a2ae82 ability to block all contacts (from privacy list editor). Fixes #4831 2009-02-20 10:15:16 +00:00
Yann Leboulanger bf8c12ee9f ask user what to do when GPG key is not trusted. 2009-02-19 22:47:38 +00:00
Yann Leboulanger c1e6cd17b7 detect expires GPG keys. Fixes #4263 2009-02-19 20:17:05 +00:00
Yann Leboulanger 3f5a2d9017 handle nick changement in another resource. See #4826 2009-02-19 09:34:27 +00:00
Yann Leboulanger 849108b11f request connection password only when neede. No need to request it for GSSAPI or ANONYMOUS login. see #2465 2009-02-13 20:24:23 +00:00
Yann Leboulanger 95d7e157da handle (un)subscription events as messages (don't force to popup a window) Fixes #2243 2009-02-13 19:35:30 +00:00
Yann Leboulanger 01bcfe2007 [thorstenp] use ctype to have gtkspell. No need to compile it from C. Fixes #4289 2009-02-12 22:15:18 +00:00
Yann Leboulanger a1c40f9b08 unset custom status icon only when remote contact goes offline or connects. Fixes #4801 2009-02-11 20:48:41 +00:00
Yann Leboulanger 7c96178126 add XEP-202 in vcard window. Fixes #4007 2009-02-10 21:45:44 +00:00
Yann Leboulanger e0123f0c24 encrypt and decrypt GPG messages in a thread, and call a callback when it's finished (sending a message is now asyncronous). Fixes #4445 2009-02-06 19:01:36 +00:00
Yann Leboulanger 816dc776b0 fix missing var 2009-01-28 12:10:10 +00:00
Yann Leboulanger 46e2b408de add a parameter in GCMessage dbus event: highlight. Fixes #4739 2009-01-28 12:00:31 +00:00
Yann Leboulanger 8603712990 metion account name in fingerprint changed dialog. Fixes $4735 2009-01-26 18:05:04 +00:00
Yann Leboulanger e1ae6ea0fe ability to hide systray icon when there is no pending events. Fixes #4645 2009-01-25 09:19:24 +00:00
Yann Leboulanger c14c993574 really go away when we go autoaway from gnome-screensaver and autoaway time is not yet reached. Fixes #663 2009-01-23 20:30:55 +00:00
Julien Pivotto 1738247d12 better xhtml-gui code 2009-01-22 20:43:15 +00:00
Yann Leboulanger ce1880927e remove code commited by mistake 2009-01-22 18:33:36 +00:00
Yann Leboulanger 5ff6ce2ca9 don't fail when first connection fails and we try to show profile window. see #4717 2009-01-22 17:53:46 +00:00
Yann Leboulanger 66aa2b5af4 fix traceback. Fixes #4712 2009-01-21 21:30:16 +00:00
Yann Leboulanger 22239525a2 connection type in 'plain', not 'tcp' 2009-01-14 18:14:20 +00:00
Yann Leboulanger 3813f20888 don't allow to have several ssl_error / fingerprint_error / plain_connection / insecure_ssl dialog at the same time for one account. Fixes #4642 2009-01-13 19:20:12 +00:00
Stephan Erb 0f61260578 Use logic which idlequeue shall be used to idlequeue module. 2009-01-11 17:11:17 +00:00
js 92a911da9b If we don't have an interpreter for them, don't make them executable! 2009-01-11 14:47:21 +00:00
Yann Leboulanger 13e6b4e58f install gajim-history-manager to bin directory, remove shebang line in py files. Fixes #4624 2009-01-06 07:16:07 +00:00
Stephan Erb ed3de38ce5 Revert r10931. Fixes #4632. See #2634 2009-01-03 16:34:58 +00:00
Stephan Erb 28112d6681 Fix indentation error. 2008-12-31 14:04:42 +00:00
Stephan Erb 8a76efb703 Proposed Fix. Make sure we read all data from our SSL socket wrappers and don't just rely on gobject.io_add_watch, select or poll.
This isn't really a clean solution, but the less intrusives fix that I can think of. Fixes #2634.
2008-12-31 14:01:53 +00:00
Stephan Erb a8cfd83c3e Move GObjectIdleQueue from gajim.py to idlequeue.py 2008-12-24 13:44:23 +00:00
Yann Leboulanger ad7c64998a better handling of error when receiving a filetransfer without bytestream feature. Fixes #4607 2008-12-24 12:11:02 +00:00
Yann Leboulanger b317ffcdae merge BOSH branch to trunk 2008-12-15 21:06:08 +00:00
Brendan Taylor aeff9046ab a fix for autonegotiation after esessions were disabled 2008-12-13 18:10:37 +00:00
Yann Leboulanger fe908b118e don't escape gmail email notifications twice 2008-12-07 22:36:20 +00:00
Yann Leboulanger 0830a5fe73 [thorstenp] use sorted() and list comprehension 2008-12-03 22:07:44 +00:00
Yann Leboulanger 89f02b1feb [thorstenp] replace filter lambda with list comprehension 2008-12-03 22:04:42 +00:00
Yann Leboulanger e389e0b16b [thorstenp] remove whitespace at eol 2008-12-03 21:56:12 +00:00
Yann Leboulanger 088378a9b7 [thorstenp] fix reimported modules 2008-12-03 21:23:04 +00:00
Yann Leboulanger 31dc32eeb9 [thorstenp] fix redefined builtins 2008-12-03 17:16:04 +00:00
Yann Leboulanger c163e90b10 [thorstenp] fix unused variables 2008-12-02 15:53:23 +00:00
Yann Leboulanger e2118de64c [thorstenp] remove useless import 2008-12-02 14:44:26 +00:00
Stephan Erb 8d0ff396b1 Do not duplicate a contact in roster on subscription changes. Fixes #4524.
For performance reasons, get_contact_iters() cannot find a contact if get_shown_groups() returns something different to what has been applied to roster model. The contact was therefore duplicated as it was believed not to be there...
2008-11-29 23:43:23 +00:00
Yann Leboulanger df1e5ee990 better handling of sessions in zeroconf. Fixes #4529 2008-11-28 15:34:56 +00:00
Stephan Erb afd8e1819d Correctly remove Observer and NotInRoster contact in one special case. Does not affect pending bug. See #4524. 2008-11-26 21:15:15 +00:00
Yann Leboulanger a3f6b82ae5 fix docutils installation under windows. css file was not included in library.zip. Fixes #4495 2008-11-19 21:47:28 +00:00
Julien Pivotto 5a31ba2ef0 Very basic integration of xHtml GUI 2008-11-14 11:13:15 +00:00
Yann Leboulanger 0641beb5d4 fix auto away after a connection cut. Fixes #4473 2008-11-13 21:37:46 +00:00
Yann Leboulanger 5ea8598686 update groupchat contact instance when we get a pm presence 2008-11-11 22:02:32 +00:00
Yann Leboulanger 9b81b5d239 [thorstenp] delay remote control creation to speed up startup 2008-11-05 20:00:57 +00:00
Yann Leboulanger bf169f302a [thorstenp] sort emoticons with sorted function. See #4457 2008-11-05 18:31:06 +00:00
Yann Leboulanger 7cb91c8b08 fix regex compiling 2008-11-05 18:30:21 +00:00
Yann Leboulanger a86f4d4d96 [thorstenp] compile regexes on demand. See #4457 2008-11-05 18:29:24 +00:00
Yann Leboulanger 3d7ef26ddb prevent traceback when removing idle object. fixes #4391 2008-11-02 16:28:29 +00:00
Yann Leboulanger c4d27cb340 don't print missing optional modules to stderr. Fixes #4433 2008-11-02 13:33:12 +00:00
Yann Leboulanger 8f9f2bf276 fix re-joining a groupchat when control is already opened. Fixes #4425 2008-10-23 17:19:57 +00:00
Yann Leboulanger 6c41d9ecd4 show a link to wiki to restore malformed database. see #4428 2008-10-22 17:31:45 +00:00
Yann Leboulanger 06ab4a7b6d revert thorstenp patches for now. They introduce bugs. 2008-10-20 21:38:06 +00:00
Yann Leboulanger f801a50260 [thorstenp] fix unused variables 2008-10-20 21:17:48 +00:00
Yann Leboulanger c2c681e05c [thorstenp] remove useless import 2008-10-20 17:54:02 +00:00
Brendan Taylor 8757449816 fix renegotiation when a message was unable to decrypt. fixes #4360. 2008-10-11 22:37:11 +00:00
Yann Leboulanger 0b56b3c44d re-add badly removed line in [10506] 2008-10-11 10:51:26 +00:00
Yann Leboulanger 5d2790ab11 remove debuging ipython window creation. Fixes #4401 2008-10-11 10:49:52 +00:00
Yann Leboulanger 158538b81c [thorstenp] rename some var to not hide builts-in functions (list -> list_, ...) 2008-10-11 10:22:04 +00:00
Yann Leboulanger 196dd7e30a [thorstenp] use isinstance rather than type(x) == y. use sorted() 2008-10-11 09:59:52 +00:00
Yann Leboulanger 2ffad66473 [thorstenp] replace reduce instances 2008-10-11 09:49:30 +00:00
Yann Leboulanger 567f1e17c1 [thorstenp] di not use emtpy except clauses 2008-10-11 09:37:13 +00:00
Yann Leboulanger 6cc8204319 [thorstenp] replace if statement with dict.get() 2008-10-11 09:31:48 +00:00
Yann Leboulanger 9d7c80d522 [thorstenp] replace has_key by key in dict. Fixes #4392 2008-10-07 20:41:59 +00:00
js 2451cb118a Fix #4375. 2008-10-05 10:21:35 +00:00
js b4e30ff003 Apply my suggested patch from #4368. Fixes #4368. 2008-10-03 13:56:36 +00:00
js da6638d44b Better checking for which IdleQueue we use.
It's a bad idea to check against NT everywhere. Someone might just
change the creation of the IdleQueue, but forget to change the other
two places. With this, it's safe to only change the creation.
2008-10-02 19:56:00 +00:00
Yann Leboulanger 90ccd1f4b1 get_gc_control is in MessageWindowMgr class. Fixes #4357 2008-09-30 13:05:09 +00:00
Yann Leboulanger 87edbb8dd8 don't remove contact when there is pending events on another resource. Fixes #4350 2008-09-29 20:52:53 +00:00
Yann Leboulanger 140e922733 [Alex V. Myltsev] timeout_add -> timeout_add_seconds to forget GPG passphrase. 2008-09-08 11:55:51 +00:00
Yann Leboulanger aba6fc2599 correctly remove contacts (force = True when we re-add them after) 2008-09-03 07:24:42 +00:00
Stephan Erb 2a1d6edd68 Do not always force backend removal when performing a delayed remove operation. Some coding standards. 2008-09-01 20:25:50 +00:00
tomk a7c36048b9 - renamed src/common/nslookup.py to resolver.py
- refactored resolver code and added asynchronous resolver based on patch by Damien Thebault[1]
  * Uses libasyncns-python[2]. If it's not available, old nslookup resolver is used)
  * works for SRV requests only at the moment

[1] https://www.lagaule.org/pipermail/gajim-devel/2008-July/000460.html
[2] https://code.launchpad.net/libasyncns-python
2008-08-31 23:40:06 +00:00
Yann Leboulanger bcc39c4e1c ask to change nickname for a groupchat only once. Fixes #4250 2008-08-29 08:06:28 +00:00
Yann Leboulanger 358ac948b7 patch has been announce and is in gettext upstream. Debian includes it, let's remove the FIXME. Fixes #4166 2008-08-29 07:25:34 +00:00
Yann Leboulanger 1e8e0f6067 no need of GUI classes in connection_handlers.py, socks5.py and secrets.py 2008-08-27 07:53:12 +00:00
Stephan Erb f55651d905 * Don't hide manage GC Bookmark menuitem when the server doesn't support private storage
* Fix indentation problem
 * Use generators instead of list comprehension (take less memory)
2008-08-25 19:35:47 +00:00
Yann Leboulanger 6f3cca4669 [Jeff Bailes] better strings 2008-08-25 10:06:22 +00:00
js bd472ba5be Small fix for OS X. Without it, Gajim won't restart if it crashed. 2008-08-24 06:15:14 +00:00
js 8d0d85ee99 Make a string translatable. Fixes #4203. 2008-08-16 19:49:56 +00:00
Julien Pivotto de4a23e751 See #4200.
* remove js from some headers
 * set coding:utf-8 to allow real names in headers
2008-08-15 17:31:51 +00:00
Julien Pivotto b58dfd6a59 Prevent many traceback due to headers and my last commit (it's late,
sorry)
2008-08-15 03:39:27 +00:00
Julien Pivotto 8bc9bc29ae * Big headers review
* Remove some licencing problems
 * To do: same for images
 * See #4200
2008-08-15 03:20:23 +00:00
Yann Leboulanger d2669df77b fix some resource problems. see #3799 2008-08-12 08:53:09 +00:00
Yann Leboulanger cdffa94641 some coding standards 2008-08-12 08:17:02 +00:00
Yann Leboulanger 168fb471cd typo 2008-08-11 14:10:30 +00:00
Yann Leboulanger 31b3c543ec make room participants list private when continuing a conversation. Fixes #4102 2008-08-11 13:23:09 +00:00
Yann Leboulanger f18d97b97a remove unused function 2008-08-11 08:41:44 +00:00
Julien Pivotto db9440c7c3 remove testing stuff... I am distracted 2008-08-11 08:13:27 +00:00
Julien Pivotto 2733ffb3d0 Make continued conversations (chat2muc) members-only (fix #4102) 2008-08-11 08:12:11 +00:00
js 0f41f0613a Revert r10159 as this breaks it completely. It's not possible to
disable E2E if for example the logging settings differ. Makes
chatting with such contacts impossible.
2008-08-09 21:13:41 +00:00
Brendan Taylor 559a8c8b13 status change tests, hopefully fix some status change issues 2008-08-09 06:10:04 +00:00
Brendan Taylor ab70491d56 correctly decide whether to autonegotiate after a session was replaced 2008-08-08 22:55:12 +00:00
Yann Leboulanger 303c0f6a71 2 less blocking windows 2008-08-07 15:51:23 +00:00
Julien Pivotto d7c60041ea Don't print twice "ping? pong" when using /ping command in a pm. 2008-08-07 15:27:02 +00:00
tomk cbfa9d97df - TLS classes refactored - NonBlockingTLS is now plugged to NonBlockingTCP and
derived (was plugged to NonBlockingClient which made it unusable for BOSH)
- Fixed HTTP CONNECT proxy socket
- Implemented workaround for the bug with insecure-connection warning dialog
  (unfortunately, this is not over - I just forbid the transport to send
  BOSH empty bodies until auth module is plugged, which is wrong and will
  break if user will wait more than "inactivity" (usualy thirty) seconds
  before clicking the dialog.
  This workaround works with ejb and opf, and also breaks connection with
  both of them if delay is too long.
- Implemented basic TLS over BOSH. It works only with OPF and poorly.
2008-08-05 23:52:35 +00:00
Yann Leboulanger d6f20965a9 update correctly self contact when we get PEP info. fixes #4145 2008-08-04 22:44:48 +00:00
Yann Leboulanger 7eb30a1f77 fix call to get_status_message 2008-08-04 13:48:36 +00:00
Jean-Marie Traissard 94a43a03fb Update counting of online transports when a transport change status. 2008-08-03 22:21:50 +00:00
Yann Leboulanger 6bd991882b save config on quitting Gajim. see #4174 2008-08-03 21:48:30 +00:00
Yann Leboulanger aae57c2990 comment a string on which xgettext fails. see #4166 2008-08-02 07:54:28 +00:00
Yann Leboulanger 9130004249 [avm] prevent eating up the passphrase when you fail to enter it 2 times, but succeed on the 3rd. see #4164 2008-08-01 10:22:24 +00:00
Yann Leboulanger 23d9413687 fix some typo. see #4166 2008-08-01 10:01:45 +00:00
Yann Leboulanger fa2d983354 better transltion strings. see #4166 2008-08-01 09:30:36 +00:00
Yann Leboulanger 3f3e33c846 fix traceback when canceling GPG passphrase dialog 2008-07-31 20:08:36 +00:00
Yann Leboulanger 81509d894a [avm] add a PassphraseRequest class that queue GPG passphrase requests. Fixes #4164 2008-07-31 19:24:34 +00:00
Yann Leboulanger 0c662cf2fd use PassphraseDialog only asynchronously. see #4147 2008-07-31 06:14:48 +00:00
Yann Leboulanger 673052f1b8 handle disconnection while insecure connetion dialog is opened. fixes #4138 2008-07-30 15:43:53 +00:00
Yann Leboulanger d030cd8b03 prevent sending invalid XML chars in chat / groupchat and status. Fixes #3296 2008-07-30 12:21:47 +00:00
js 8605cd3f38 For historical reasons, we have a tab width of 3. This is strange, but
we have that in all files. To at least lesser the confusion a bit, add
vim tags for that.
Additionally, fix wrong #! in a few files.
2008-07-29 19:49:31 +00:00
Yann Leboulanger 676b91731d restore autoconnect_as option. Correctly use 80 char width 2008-07-29 06:42:34 +00:00
js dc8b56c9ed Some users don't want their status to be restored. Make it an option. 2008-07-28 16:36:17 +00:00
tomk af3f1a9dd4 - implemented BOSH key sequencing, acknowledgements
- improved HTTP persistent connections
- added alarm-unregister method to idlequeue
- extended proxy managing dialog for BOSH proxy
2008-07-26 22:42:40 +00:00
Brendan Taylor abbdf8d5c9 attach resource to sessions so that only the relevant sessions are terminated when a contact goes offline 2008-07-26 05:28:15 +00:00
js 11b5ce1d04 Fix restoring of multiline status messages on reconnect. 2008-07-26 01:58:30 +00:00
js 83a317c042 Renegotiate if the remote end got disconnected and now got back online. 2008-07-24 22:14:42 +00:00
js 0d9a73cde9 Always have self.contact of a chat control point to the hightest
resource if none was specified.

As it's still possible to start E2E when the only E2E-capable resource
goes offline, this means that caps is definitely broken.

(Yes, I verified it with a print contact.resource - it IS checked for
the right contact!)
2008-07-23 18:21:02 +00:00
js 6bfdebf347 Fix #4069. 2008-07-23 17:40:02 +00:00
js 65d5d92087 * End ESession when remote signs off.
* Fix typo.
* Better code in conversation_textview.py.

@bct: Your diff didn't work, I had to move it + add an if. Seems to
work now.
2008-07-22 14:32:37 +00:00
js 229006a28e Coding style. 2008-07-22 14:13:37 +00:00
Stephan Erb 1b2e12057c Some cleanups and an attempt to fix the MUC highlight problem. 2008-07-21 21:44:40 +00:00
js 327673cdd7 bct, could you please test what you commit? I was just flooded by TBs,
had to kill Gajim.
2008-07-21 14:36:45 +00:00
Brendan Taylor a3d0166f1d wrong method name when restarting e2e 2008-07-20 15:06:15 +00:00
js 8c49e10f93 It's bad to silently drop errors when not running it from the SVN repo.
On Windows, it's even worse: When something throws a TB, the user won't
notice before Gajim is terminated (a dialog will show then that
gajim.exe.log was created, nothing more!)
2008-07-20 14:53:34 +00:00
js cdbdaa52f3 Fix #4113. 2008-07-20 13:48:50 +00:00
Stephan Erb d83f9da555 Improved groupchat minimization:
* partly rewrote join_room because it was hard to read
 * Correctly handle invites from anonymous rooms. Fixes #4057
 * Use HIG dialog for invitation requests
 * Fix bug where minimized groupchats where hidden after a reconnect
 * Removed some duplicated code
2008-07-19 17:36:21 +00:00
Brendan Taylor 8e9b2d1781 automatically restart esession when we can't decrypt a message 2008-07-18 23:33:59 +00:00
Brendan Taylor 010afb1176 disconnect session from chat window only when the highest remote contact changes 2008-07-18 22:42:28 +00:00
tomk a58618c843 persistent HTTP connections in BOSH roughly implemented, added hack for openfire incapability of after-SASL-stream-restart-response in BOSH, changed doubles quotes to single 2008-07-18 00:34:49 +00:00
js 1fabaa8844 Keep last status on autoconnect. 2008-07-16 15:50:51 +00:00
js d1c60a07e5 This should fix #4098. However, I'll let that bug open until I'm
very very sure and gave that a few days of testing.
2008-07-16 02:37:57 +00:00
Brendan Taylor a6dfa86ad0 show warning dialog when receiving an unencryptable message 2008-07-15 03:16:58 +00:00
Brendan Taylor d541b42236 fix clicking notification when someone logs in 2008-07-14 23:21:08 +00:00
Brendan Taylor 9d98117f21 make GPG passphrase dialog nonmodal, fixes #3975 2008-07-14 05:01:22 +00:00
Yann Leboulanger b933e6cef0 detect sound player on first start as soon as gajim is started, not first time we open preferences window. Fixes #3566 2008-07-11 06:29:40 +00:00
Stephan Erb fca6bdbbc4 [Florob] Improved URL matching.
We don't match all valid URIs like blub:blaa but include common used (non)-urls like www.google.de
2008-07-08 18:49:51 +00:00
Stephan Erb 0bb1f1d656 Correctly readd a metacontact family after removing a single brother.
* Coding standards
* remove useless key-list creation
2008-07-06 22:24:58 +00:00
Yann Leboulanger 74c53da32a fix arguments order in contacts.py, some coding standards. should fix #4081 2008-07-05 19:04:27 +00:00
Yann Leboulanger 1e636e7824 warn before connecting without PyOpenSSL. fixes #4065 2008-07-05 18:07:32 +00:00
Brendan Taylor 17844361bb sesison-related TB fixes 2008-07-03 23:19:44 +00:00
tomk 952e4a1569 moved bosh code from client_nb.py to bosh.py, replaced debug logging with debug.py by logging in whole xmpppy (debug.py is now unused) 2008-07-02 23:29:10 +00:00
js 6b3414552a Leopard's X11 is started automagically - we don't need this anymore. 2008-06-28 23:05:14 +00:00
Yann Leboulanger db3ddc71ff prevent TB when reading pending events. Fixes #4035 2008-06-27 15:56:09 +00:00
Jean-Marie Traissard a9877f14dd [erlehmann] Fixed regular URL matching expressions for "-". 2008-06-27 10:50:09 +00:00
Brendan Taylor 5a772a046c teeny-tiny fix 2008-06-26 23:37:24 +00:00
Brendan Taylor b21a1e2489 win.get_controls() isn't needed anymore 2008-06-26 23:37:12 +00:00
Brendan Taylor e3613be1fa first pass at stripping out the one-tab-per-session code 2008-06-26 23:36:58 +00:00
Stephan Erb 59b9e86fbb [erlehmann] Improved regular URL matching expressions. Fixes #3715.
URLs like (http://myFoobar.org) and http://en.wikipedia.org/wiki/Mornington_Crescent_(game) are now correctly detected.
2008-06-26 22:24:27 +00:00
Brendan Taylor d6be46be84 hopefully fix some has_window bugs 2008-06-21 19:12:58 +00:00
Brendan Taylor 8b4627049b moved session negotiation handling from gajim.py to session.py 2008-06-21 19:12:47 +00:00
Brendan Taylor 7721abb2b1 fix handle_event() for pms and new_chat_from_jid() for existing chat controls 2008-06-18 04:11:11 +00:00
Stephan Erb b1f13ca040 Remove Non-ASCII character. 2008-06-17 19:27:32 +00:00
Stephan Erb 473e2cdbd8 Handle remote roster changes.
* Don't traceback when another resource of us is moving contacts to new/different groups.
 * Always refilter all involved groups.
 * It is now possible to not update contacts severside when using add/remove_from_groups
2008-06-17 19:25:17 +00:00
Yann Leboulanger 5e5733e40a fix traceback when no control is opened. fixes #4024, #4028 2008-06-17 05:39:20 +00:00
Brendan Taylor 16c7dfca91 fix undefined variables in handle_event() 2008-06-17 03:27:54 +00:00
Jean-Marie Traissard ca457a7ac2 groups :
-Use a method to get_shown_groups (possibly more work to do (special group attribute))
-Show contact only if contact.ask, not according to modified xep 0162 logic. (I don't get neither the xep
meaning, neither this modified logic, can you explain steve-e ?)
-Remove contact before we modify it req_sub(). Else we can't remove it because iter is not found.
-When removing a contact and we let him in see us (observer), manually set show to offline, so he is not set as
visible.
-Remove observer from observer group if we asked him auth (I mean before he answer). Xep 0162 say he is not an
observer then. Fix contact staying in observer group when we get auth later.
-Renaming groups seems fixed (it's an accident :p )

More work on group to follow
2008-06-15 21:48:13 +00:00
Brendan Taylor 2b074aed41 pass the ChatControl around with printed_chat events 2008-06-14 16:49:48 +00:00
Brendan Taylor 964cb10163 hopefully fix the last of the get_control calls (fixes #4018) 2008-06-14 08:43:20 +00:00
Stephan Erb d5bbc403c9 Various roster fixes.
* don't traceback when selfcontact is disconnecting
 * make more use of "remove contact after last event removed" mechanism
 * correctly redraw bigbrothers after status change
 * handle situation where we receive a message, go offline without reading it and reconnect after another resource has moved the sending contact to another group.

know bugs: newly added transports added to "not in roster group"
2008-06-10 21:18:55 +00:00
Brendan Taylor 399233f293 detach sessions from controls when the highest priority contact changes.
this way we don't get multiple tabs when the remote user moves to another resource.
2008-06-10 02:58:17 +00:00
tomk 6a15c9b9c9 initial cleanup of xmpppy perfomed, see #3260 2008-06-09 00:32:02 +00:00
Jean-Marie Traissard f9c981df5d -Set General and Observer group directly in contact instance, instead of calculating it each time
-When creating self-contact contact instance, store it with group 'self_contact', so it never goes in General
-Make general group not be seen visible because of self contact even if self.regroup
-Remove the self contact instance itself too when WE deconnect or when IT deconnect, so we will
not see it as offline if refilling roster (regroup account for example)
2008-06-08 21:27:31 +00:00
js c2eb4b5a9f Completely remove OTR.
Sorry, it just wasn't maintainable. The problem is the current libotr
API. I'm sick of working around the strange libotr API, sick of getting
HTML messages, sick of losing messages. The final argument for
completely removing it was that we can't get the message ID of a sent
msg anymore - which we need. I tried to work around this as well, but
there seems to be no way to wait for a signal in glib the way I would
need it for the workaround (I wanted to emit a signal in inject_message
and then wait for it after the call to otr_message_fragment_and_send
so the signal can pass us the message id). And the last reason is that
we're heading towards a new release and thus want to stabilize the code,
thus don't have time to work around even more libotr API strangeness.
I will give feedback to the libotr developers, who are currently
planning a new API, so that we can hopefully see OTR support once again
as soon as libotr4 is released.

Kjell already announced that he will continue his branch:
https://code.launchpad.net/~afflux/gajim/otr

I really hope the libotr devs will provide a sane API with libotr4 so
we can integrate OTR support again.

Oh, and I added one more try/except block for OS X.
2008-06-08 15:27:05 +00:00
js 1eeee2d531 We really need a way to start X11 without an xterm on OS X. Any idea? 2008-06-08 10:29:06 +00:00
js 03d68c0d26 Be more specific on excepts. 2008-06-08 10:19:26 +00:00
js 0551c9ddac * Start X11 automatically on OS X if not running.
* Moved one import in osx/__init__.py. If that import fails, we still
  got the few functions defined we need, even if the rest of that file
  doesn't work due to missing deps.
2008-06-07 21:12:27 +00:00
js 8def8de5c7 Make Gajim work on OS X again.
Someone completely broke it by trying to port it to native GTK.
However, that person didn't only break it with X11 GTK, with
native GTK it wasn't working correctly either.
Fixed it by adding lots of try/except blocks. Someone definitely
deserves to be slaughtered for completely breaking it on OS X…
2008-06-07 20:42:15 +00:00
Jean-Marie Traissard 7fbfa0547d Regroup window.present() calls. See #3908. 2008-06-05 15:09:17 +00:00
Yann Leboulanger d1762dd9a0 improve new gmail e-mail popup window. Fixes #3252 2008-06-03 14:15:57 +00:00
Brendan Taylor dc89b61d37 fix lazy session binding to reuse sessions and pick them up from pending events 2008-06-02 23:26:40 +00:00
Brendan Taylor d19cb43ee0 don't assign a session to a control until it's needed 2008-06-02 23:26:32 +00:00
Yann Leboulanger 03cbc6e2d5 ability to rename zeroconf account. Fixes #3945 2008-06-02 21:22:35 +00:00
Yann Leboulanger 5a459104d5 fix traceback when joining a room without a nick. Fixes #3979 2008-06-01 08:44:03 +00:00
Yann Leboulanger 533e955cf1 make pep work, move config options per account, make publish_tune configurable in account context menu. fixes #3954 2008-05-30 21:43:53 +00:00
Stephan Erb 4b6fabadd9 Don't remove contacts from roster when they have pending events.
* update documentation and fix indentation
 * don't remove offline contacts from roster when we open the last pending, non chat message event
 * store account and jid per event
2008-05-30 17:42:53 +00:00
Yann Leboulanger 8973b91070 auto_join_bookmarks only join non-opened groupchats. Opened one are already auto-joined on re-connection. Fixes #3891 2008-05-30 10:26:33 +00:00
Yann Leboulanger c127493e58 remove pep options from pref window, store them per account, store caps_hash per account. see #3954 2008-05-27 10:24:29 +00:00
Brendan Taylor f7874d29c7 reuse chat controls after session termination
fixes #3950
2008-05-23 23:27:08 +00:00
Stephan Erb a06468b846 Always remove contacts from GUI when we receive a roster via xmppy.
This fixes a bug with metacontacts over different groups and should stop contact duplication in most cases.
2008-05-19 21:17:43 +00:00
js f1c333410e Revert r9682, it was a bad idea. The solution is not to send the
thread id, but to even remove the lock symbol when OTR was ended
and we don't have a thread id.
2008-05-19 20:13:24 +00:00
Stephan Erb abe75901d4 Remove some extra model refiltering.
Whenever we write to the underlying child_model gtk will call the _visible_func on itself.
2008-05-19 20:08:32 +00:00
js f92f5f5c64 Send thread ID on ending OTR session so that self.session is defined
when that event is received and the lock icon updated.
2008-05-19 20:04:48 +00:00
Stephan Erb ea00e4d933 Improve select_contact method.
* use correct API in session.py
 * only filter when really needed
2008-05-19 20:00:41 +00:00
js 2586c999fe Fix automatic start of OTR session. 2008-05-19 13:52:45 +00:00
js 12014b40b6 * If found, automatically use included gtk on win32.
* Don't include docutils stuff in win32 builds.
2008-05-19 10:58:03 +00:00
Brendan Taylor fad6d2ef7e pass session when dispatching MSGNOTSENT 2008-05-19 00:17:39 +00:00
js 2be8792fd3 Coding style. 2008-05-18 19:44:43 +00:00
js 8a6615a5d0 Renable OTR. I found a way no messages will get lost, but it's more
or less a workaround. We never let libotr handle unencrypted messages
now and handle notifying the user about the message not being encrypted
ourself.
2008-05-18 19:11:13 +00:00
Julien Pivotto 79678de341 make continued conversations unbrowsable. fix #3783 2008-05-17 16:23:44 +00:00
js aaf3ca3161 Disable OTR until the libotr devs fix their very broken API. 2008-05-16 15:29:23 +00:00
Brendan Taylor b7863b0316 fix tb when closing chat control after e2e ended 2008-05-15 04:03:19 +00:00
Brendan Taylor 58478b032d fixed opening chat with multiple resources 2008-05-14 02:20:31 +00:00
Brendan Taylor d511b5afc4 merged in session-centric branch, with fixes for OTR compatibility 2008-05-13 01:59:10 +00:00
js 7d02042f6d Make logging of OTR status changes a bit nicer.
Still not ideal. Maybe add a new log type for encryption? ESessions
could also use this…
2008-05-11 18:18:34 +00:00
js 0378ed821d Don't log the OTR initiation request (?OTR?). 2008-05-11 17:40:22 +00:00
js 2a51c443e5 D'oh. 2008-05-11 17:19:54 +00:00
js fc762157c0 * Disable OTRv1 by default.
* Don't send our JID on OTR request! It might reveal our JID in MUC!
2008-05-11 17:18:44 +00:00
js 4958b28e1d Sorry, last commit missed one hunk. 2008-05-11 13:41:23 +00:00
js d2731268d7 [Kjell Braden] Fix OTR for chat and GC queries for real now. 2008-05-11 13:20:22 +00:00
js 573568f9ac Reverted r9614 and r9615.
Sorry, bct, but I think it is to early to merge that as it completely
breaks. It seems nobody in gajim@conference.gajim.org considers it
usable yet.
I don't know if you got asterix' ok for it and I'm sorry if I reverted
it now although you had his ok, but having broken trunk is very
contra-productive. I think it was just too early to merge.
2008-05-11 13:17:28 +00:00
Brendan Taylor 2162c3730a merged in session_centric branch 2008-05-11 01:19:59 +00:00
js d69d5266b5 Fix a OTR related crash on exit. 2008-05-11 01:07:38 +00:00
js b5a9edc6b4 Fix crash in GC query when OTR is active. 2008-05-11 00:45:15 +00:00
js 4eeb96368b Store otr_userstates at the right place and create it the right way.
This fixes the crash when creating a new account, which made Gajim
unusable on systems where it never ran before.
2008-05-10 21:29:47 +00:00
js 435042968e Added OTR support.
Work done by Kjell Braden <fnord@pentabarf.de>.
Some fixes done by me.
2008-05-09 12:35:25 +00:00
Jean-Marie Traissard 75ffe12157 Change very bad var names 2008-05-05 03:18:09 +00:00
Jean-Marie Traissard 5689daf66b In configure room, works even if we receive an affiliation list with more than one affiliation inside.
More logical, more secure and example 90 in xep-0045 says it can happen. Deal also with affiliation 'none' (don't show it)
2008-05-05 00:38:52 +00:00
Brendan Taylor 1962b231e6 pm bugfix 2008-05-04 00:24:27 +00:00
Brendan Taylor 99f2997d27 pm fixes 2008-05-03 00:10:17 +00:00
Brendan Taylor 20beea4b49 fixed groupchat 2008-05-02 02:32:28 +00:00
Yann Leboulanger a9e25aa98a fix arguments of on_open_chat_window functions. It is called from callbacks, so first argument is widget. 2008-04-26 23:36:03 +00:00
Yann Leboulanger 613753f308 [elghinn] codding standards 2008-04-24 13:47:37 +00:00
Stephan Erb 29d2e00803 Small roster API cleanups. 2008-04-23 22:34:10 +00:00
Yann Leboulanger a3827fe5d0 new XEP-0115 implementation (version 1.5) 2008-04-20 22:58:47 +00:00
Jean-Marie Traissard 47bc1d61b4 Added one unique function to src/gajim.py to add a GC bookmark.
Moved newly created auto_join_bookmarks() to good source file.
Fix :
-when using bookmark auto from join dialog : Action rebuild now done; Add GC sorted in list
-when using gc_control->bookmark : Store password if any.
2008-04-20 19:45:09 +00:00
Jean-Marie Traissard 8b8f139f79 Moved methods for opening new messages controls from roster.py to src/gajim.py. This is not roster related. See #3643.
Sorted src/gajim.py functions, using steve-e style :p
2008-04-20 18:14:04 +00:00
Yann Leboulanger e54d749eec add a new dbus signal when a contact changes his status. fixes #3655 2008-04-20 14:39:08 +00:00
Stephan Erb 4e6bd4ee8f Port roster_window to gtk.TreeModelFilter.
Contacts are now online hidden when they connect/reconnect and not completely removed/readded. Should come with a great speed improvement for people with big rosters.
There are still a few known problems but non that should dalay this patch any longer. Related bugs will be tracked with 'modelfilter' keyword.

See #1201
2008-04-20 14:01:04 +00:00
Jean-Marie Traissard 0374e72b28 Use one function to join bookmarks automatically only. Fix bug "all bookmarks joined minimized when going back
from invisible". Not sure it's right place for this function.
2008-04-19 23:39:09 +00:00
Jean-Marie Traissard a095a3249e [elghinn] Set default icon before creating roster so it's done for roster too 2008-04-18 09:43:26 +00:00
Jean-Marie Traissard 968b2acc4f http://python.org/dev/peps/pep-0008/ " Comparisons to singletons like None should always be done with
'is' or 'is not', never the equality operators."
Comparisons to None part; second one...
roster_win.py is NOT checked here (waiting for modelfilter)
2008-04-18 00:26:07 +00:00
Jean-Marie Traissard 2ce13dc40e http://python.org/dev/peps/pep-0008/ " Comparisons to singletons like None should always be done with 'is' or 'is not', never the equality operators."
Comparisons to None part
roster_win.py is NOT checked here (waiting for modelfilter)
2008-04-18 00:02:56 +00:00
Yann Leboulanger 5dd0d4fce8 move functions that build icons to gtkgui_helpers instead of roster_window. Fixes #3873 2008-04-17 14:17:14 +00:00
Yann Leboulanger 2d04fc6ae6 don't hide roster on startup if no systray module is available 2008-04-17 06:34:32 +00:00
Yann Leboulanger b7fcb776b9 try to auto-convert emoticons.py files to the new format. Fixes #3696 2008-04-15 22:04:39 +00:00
Yann Leboulanger 6d8dd51db0 show/hide ipython window instead of create/destroy 2008-04-15 18:09:04 +00:00
Jean-Marie Traissard 88f7abd795 Fix "You are already in this GC" bugging at reconnection. Happened if we receive
bookmarks after we already reconnected to opened GC
2008-04-15 17:25:59 +00:00
Jean-Marie Traissard edb5910c1d prevent traceback when ping reply arrives after we close the control; without
error too. Fixes #3859.
2008-04-15 12:36:10 +00:00
Yann Leboulanger 5348c3a37f add ACE option to configure interval between 2 idlness checks. default to 2 seconds. fixes #3004 2008-04-15 09:35:36 +00:00
Yann Leboulanger e7f88e6dd6 prevent traceback when ping reply arrives after we close the control. fixes #3859 2008-04-15 09:02:36 +00:00
Yann Leboulanger 29dd9d2576 added ipython for SVN users only. 2008-04-14 15:19:09 +00:00
Yann Leboulanger bdac12d789 don't go autoaway when screensaver is activated is user disabled the autoaway option. Fixes #3824 2008-04-10 14:47:12 +00:00
Yann Leboulanger e341548d25 really ignore GTK warnings under windows 2008-04-04 21:31:27 +00:00
Yann Leboulanger 61be183c8e don't stop autoconnect after first account 2008-03-30 12:05:04 +00:00
Yann Leboulanger a6e06b3bca add autoconnect_as feature to autoconnect as away or invisible 2008-03-30 11:50:59 +00:00
Yann Leboulanger 1c313ed242 update string printed when running gajim -h to show --config-path option 2008-03-27 13:59:03 +00:00
Yann Leboulanger d1a685c4a7 typo in a string 2008-03-22 08:52:46 +00:00
Yann Leboulanger 1008d162f4 show invitation from anonymous room in roster from a groupchat rather than from a normal Contact. fixes #3448 2008-03-21 12:30:23 +00:00
Yann Leboulanger 0d427eff3b Warn user when database is corrupted and unreadable. Fixes #3761 2008-03-17 07:22:43 +00:00
Stephan Erb 8d4a0dd203 Indentation error. Fixes #3768 2008-03-14 12:37:02 +00:00
Yann Leboulanger e572a0cd65 warn user when emoticon theme can't be loaded. fixed #3696 2008-03-14 08:46:10 +00:00
Jean-Marie Traissard 67f69fe688 History log checkbutton cleanings :
* Fix a bug when accessing by nickname
* Restore usability for rooms (opened ones) and offlines contacts (but if in roster)
* Don't search account of contact if we already have it
* Disable checkbutton if we don't log for the whole account
2008-03-13 01:15:57 +00:00
Yann Leboulanger 64c2fb1667 fix some strings 2008-03-11 16:50:35 +00:00
Yann Leboulanger d17b5b7bad new way to create emoticons.py file. fixes #3696 2008-03-10 23:26:04 +00:00
Jean-Marie Traissard 6e84de1fbe Fix indentation error in [9348]. 2008-03-10 22:40:46 +00:00
Yann Leboulanger 1b90552446 ability to remove a PEP node 2008-03-02 23:56:39 +00:00
Yann Leboulanger d0aa21eb24 commit back MSN transport workaround 2008-03-01 09:56:00 +00:00