Commit Graph

1013 Commits

Author SHA1 Message Date
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
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
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
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
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
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