Commit Graph

7091 Commits

Author SHA1 Message Date
Yann Leboulanger 8b1746140e implement a get_purged() function in dataforms to send minimalist dataforms when we send a reply. fixes #4132 2008-07-29 15:27:00 +00:00
Yann Leboulanger 69b088b4b9 prevent traceback when player is no more on dbus. fixes #4131 2008-07-29 07:52:51 +00:00
Yann Leboulanger 64b73530c4 prevent traceback, fixed #4121 2008-07-29 07:36:44 +00:00
Yann Leboulanger bdcce03d5d don't require python2.5 2008-07-29 07:28:07 +00:00
Yann Leboulanger 54422608ff don't require python2.5 2008-07-29 07:23:56 +00:00
Yann Leboulanger b039c1e229 don't require python2.5 2008-07-29 07:20:12 +00:00
Yann Leboulanger 4ebee785ff don't require python2.5 2008-07-29 07:11:39 +00:00
Yann Leboulanger 0e4df7800d don't require python2.5 2008-07-29 07:08:56 +00:00
Yann Leboulanger e7b7e01b54 don't require python2.5 2008-07-29 06:59:14 +00:00
Yann Leboulanger 676b91731d restore autoconnect_as option. Correctly use 80 char width 2008-07-29 06:42:34 +00:00
Yann Leboulanger 49ea574c7d typo 2008-07-29 06:40:09 +00:00
Yann Leboulanger 1fd2c5f050 add NS_TUNE, ACTIVITY and NICK to features list 2008-07-29 06:17:35 +00:00
Yann Leboulanger e21b1dcb37 remove publish_mood, publish_activity and publish_nick options. 2008-07-29 06:15:41 +00:00
js c078f11fe0 Show activity in roster. 2008-07-29 02:32:57 +00:00
js d3b86d2105 Translate activity in tooltips. 2008-07-29 02:14:06 +00:00
js 6dfa9c7e35 * Fix a TB with unknown moods
* Add the 'thoughtful' mood in the Gajim namespace (trying to get it in
  the XEP!)
2008-07-29 00:11:44 +00:00
js c06c258b2f Show activity in conversation window. 2008-07-28 22:33:20 +00:00
js ebea2ef2b0 Actually, that didn't really fix it. But this does. 2008-07-28 21:43:41 +00:00
js 50406b13e6 Disable ok button if no activity is set, but enable is selected. 2008-07-28 21:36:11 +00:00
js f7d8631a5c New activity dialog. 2008-07-28 20:57:56 +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
Yann Leboulanger cd6742a9e4 prevent TB when connection is lost. fixes #4112 2008-07-28 12:17:33 +00:00
Brendan Taylor d8070318ff don't autonegotiate if gpg is already active 2008-07-27 21:42:34 +00:00
Brendan Taylor 36f286f808 enable esession and gpg menuitems if they're active 2008-07-27 21:35:02 +00:00
Jean-Marie Traissard aa749cb77b Remove useless function and check. Make avatar in notification works with jpeg too. See #4060. 2008-07-27 10:21:51 +00:00
Brendan Taylor 2bb2c452c6 update resource-specific chat controls when that resource comes back online 2008-07-26 18:44:47 +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
Brendan Taylor 094052eb7c fix some issues with the difference between Contacts and GC_Contacts 2008-07-26 01:16:24 +00:00
js 67fb7e211c If I add that missing quote, I should add it at the right place... 2008-07-25 16:51:26 +00:00
js 486caffc00 Oops, killed that quote by mistake. 2008-07-25 16:44:20 +00:00
js d8bd70c93b Show tunes in roster. 2008-07-25 14:11:14 +00:00
Stephan Erb 4674480e61 Fix wrong paranthesis. Fixes #4137 2008-07-25 10:50:56 +00:00
js 6cc8cd28e9 [Florob] Make exception handling not cause an exception. Fixes #4125. 2008-07-25 02:12:21 +00:00
js 0653680203 Only show mood in account row when show_mood_in_roster_is active. 2008-07-25 01:16:30 +00:00
js 5958bb8771 D'oh!! Killed that ) just before comitting :-( 2008-07-25 01:11:38 +00:00
js d694b8a6df Show own mood in account row. 2008-07-25 01:10:14 +00:00
js 0d6394b0ca * Better rendering of mood in roster.
(Only takes space if needed now)
* Possibility to disable display of mood in roster from preferences.
  (Also works on the fly with the new rendering method)
* Minor improvements in the translation of the moods to German.
2008-07-25 00:43:01 +00:00
js aec24f6e21 Show mood in roster & coding style. 2008-07-24 23:53:56 +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 87d5904384 Possibility to disable ESessions (not only autonegotiation) per account 2008-07-24 22:13:59 +00:00
js dcfeafd0c6 Start autonegotiation when the user starts typing. 2008-07-24 22:13:37 +00:00
js ffd0bb8b0b If there are no per-contact settings, return defaults. 2008-07-24 22:13:13 +00:00
js c484fdddf1 Show tooltip for chat states. 2008-07-24 22:11:48 +00:00
js ea26f8eabc If no resource is left, we shouldn't have caps left either! 2008-07-23 18:38:52 +00:00
js 701fe4267f Fix a TB. 2008-07-23 18:34:26 +00:00
js 40112aa128 Handle it correctly if caps were removed.
YES, it CAN happen that we had caps and now got a presence without!
And that WILL happen very often, for example if the other end signs
off!
2008-07-23 18:28:55 +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 5441c32e0e Finally fix status message tooltip in conversation window.
This also doesn't leave the tooltip when the status was removed anymore
2008-07-23 17:28:01 +00:00
js c5b7f356a9 Be compatible with pygtk 2.10.
I'm still for kicking compatibility for everything < 2.12.0 as with
2.12.0, there are a few new APIs that obsolete old, stupid APIs.
2008-07-23 16:27:06 +00:00
js 8abacfdb8f A few new files were added with the new Gtk+. Update NSIS. 2008-07-23 13:33:23 +00:00
js 0f17f4dfec Update text to 'None' when disabling mood. 2008-07-23 02:16:09 +00:00
js 00847d91bf Same for user mood.
Woohooo! This is the 10000st commit to Gajim! Let's have a party!! \o/
2008-07-22 23:41:07 +00:00
js 73d73404be Update tune in converstaion window. 2008-07-22 23:39:45 +00:00
js 869d451aba Mood still wasn't translatable at some places. 2008-07-22 23:34:45 +00:00
js 63524f79e9 Be consistent in the chat window. 2008-07-22 23:30:52 +00:00
js 417fcaddf5 Make mood in tooltip translatable. 2008-07-22 23:27:53 +00:00
js 8599a46046 More coding style.
(Do I always have to fix the coding style first before I can work with
it? Damn, that's annoying! My terminal has a width of 80 chars, what's
so hard about using the 80 chars width we have specified in the coding
style?)
2008-07-22 23:25:27 +00:00
js cc733a6cac Coding style. 2008-07-22 23:22:49 +00:00
js 1b675d0961 Replace _ in moods by space. 2008-07-22 23:11:30 +00:00
js b9ea534850 Show user tune in conversation window. 2008-07-22 23:06:58 +00:00
js c3079e5ac5 Make user tune tooltip translatable.
@whoever did that: _() has to be around the format string, NOT the
result of the sprintf!
2008-07-22 23:03:33 +00:00
js 4178ec7fcb Better User Mood dialog. 2008-07-22 22:20:51 +00:00
js d46995ad8e 'None' is not a mood! 2008-07-22 21:43:19 +00:00
js c5e679a078 Show mood in chat window. 2008-07-22 21:08:52 +00:00
Stephan Erb 9ecf0e5fa9 Some small tweaks to the roster visible_func
* Do not show transports when the account is disconnected. Fixes #4124
 * Hide contacts with unconfirmed subscription when we only want to see online contacts. Fixes #4118
2008-07-22 20:29:31 +00:00
js 213d9dd54c Separate the code to update the toolbar. Now we can update when the
status / caps chance.
2008-07-22 15:40:20 +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
js 6239ae57c3 Remove rev keyword code again as this doesn't work. It's only updated
when the defs.py file is changed.
2008-07-21 22:55:03 +00:00
Stephan Erb 1b2e12057c Some cleanups and an attempt to fix the MUC highlight problem. 2008-07-21 21:44:40 +00:00
Brendan Taylor e5abe84484 correct dh prime (for real this time) 2008-07-21 19:55:27 +00:00
Brendan Taylor 758adfbaf3 fix esession caps condition 2008-07-21 19:55:16 +00:00
js 2cf1171124 Remove \n from distribution name. 2008-07-21 17:29:49 +00:00
Brendan Taylor 1d48ca648f corrected one of the dh primes 2008-07-21 15:14:16 +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 c9b2556c41 make esessions an optional caps feature 2008-07-20 15:54:05 +00:00
Brendan Taylor 90098b1e34 make esession autonegotiation option per-account and per-jid 2008-07-20 15:06:21 +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 dd63bbe7d2 This does a better job :). 2008-07-20 14:48:08 +00:00
js 41e3b00dbe This should automatically include the revision in our version. 2008-07-20 14:44:08 +00:00
js cdbdaa52f3 Fix #4113. 2008-07-20 13:48:50 +00:00
Brendan Taylor f11b5dd081 added option for esession autonegotiation
added option for modp groups to use in a negotiation
2008-07-19 20:42:03 +00:00
Brendan Taylor e4b4d839da fix a really silly bug caused by my last commit 2008-07-19 20:41:53 +00:00
Stephan Erb fc39f33590 Add use_tune support for banshee 1.0. (No more polling, yeah!) 2008-07-19 19:55:13 +00:00
Brendan Taylor 913c434c80 update status in resource-specific chat windows 2008-07-19 18:31:45 +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
js f5d92c296b Nicer XEP-0184 warning image. 2008-07-19 14:45:04 +00:00
js 053a1be708 Use timeout_add_seconds - that easier on the resources. 2008-07-19 12:08:01 +00:00
js ed48bffa08 Only show the XEP-0184 warning if the message has not been received
in 2 seconds.
2008-07-19 11:57:03 +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 f704701ba4 Support for displaying XEP-0184 receipts. 2008-07-18 20:24:34 +00:00
Brendan Taylor 8b1abeba54 fix disappearing crypto icon 2008-07-18 04:01:07 +00:00
js 1f429354a9 Remove E2E password dialog. bct wanted to remove this, but I was
bored, so I did his job :).
2008-07-16 16:17:50 +00:00
js 1fabaa8844 Keep last status on autoconnect. 2008-07-16 15:50:51 +00:00
js 4dbf5d9c0e Another part of a fix for #4098.
I'm not sure how fatal if would be if the idle queue of NS lookups
hangs, but this fix won't hurt anyway, so I better fix it.
2008-07-16 12:58:52 +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
js 3bd76e406a Partially fix #4098.
This is, however, only a half fix as this fixes that it fails when
there's None in waiting_descriptors[2], but actually, there never
should be None, so I have to investigate why there was none.

This patch is, however, correct and needed and the other queues also
have that check. It's just that I also need to fix the reason for
the None in the queue.
2008-07-15 23:23:31 +00:00
js 6b9bfab6d1 Last diff was incomplete. 2008-07-15 17:04:36 +00:00
js e01968ef91 GPG is always authenticated as we use GPG's WoT.
An idea: Currently, we don't send the message when the key has not
enough trust. How about showing the unauthenticated icon then, but
sending the message?
2008-07-15 16:45:39 +00:00
js 92e9a51fc5 D'oh! 2008-07-15 14:39:54 +00:00
js cf2da2b039 Fix #4100.
dbus-monitor actually showed the traceback that wouldn't appear
anywhere else.

Note to others: DBus.String needs to be converted using str()!
2008-07-15 14:22:34 +00:00
js 151e7af63e Proper checking for XEP-0085, with workaround for the caps missing
problem. Same here, remove check to notexistant once we have fallback
to disco.
2008-07-15 13:51:20 +00:00
js cb29efd57e Revert r9928 and implement a workaround that allows real E2E checking.
This workaround will still work once fallback to disco is supported,
though it SHOULD be removed then as it's not necassary anymore then.

@bct: Now we only need to get rid of that password dialog :).
2008-07-15 13:30:31 +00:00
Brendan Taylor a6dfa86ad0 show warning dialog when receiving an unencryptable message 2008-07-15 03:16:58 +00:00
Brendan Taylor 15567aa113 fix encrypted/unencrypted notifications in PM 2008-07-14 23:46:22 +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
Brendan Taylor 7ff17b7e1f don't automatically start esessions, at least until we get caps sorted out 2008-07-14 05:00:57 +00:00
Brendan Taylor a407414dd9 automatically start an esession when the remote client supports it 2008-07-14 00:26:14 +00:00
Brendan Taylor 814c9c118a XEP-0116 support discovery 2008-07-14 00:26:05 +00:00
Brendan Taylor c24041a0df moved receipt handling after XEP 0200 decryption 2008-07-14 00:25:53 +00:00
Brendan Taylor b837c9c558 use YYYY-MM-DD dates in the chat history window so it sorts correctly 2008-07-12 04:36:05 +00:00
js 388fd7127a Not logging encrypted sessions by default is not a good idea.
We can assume the user's PC is safe, otherwise encryption won't help
anyway as the key could be stolen. If the user is too paranoid, he can
still disable it and thus also force the other end to stop logging.
2008-07-11 17:54:02 +00:00
js e67048bdfd If we receive an error PEP packet, don't treat it as incoming PEP event 2008-07-11 12:34:43 +00:00
Yann Leboulanger 3fe385d203 ability to browse server that returns an identity category=pubsub, type=service. fixes #4089 2008-07-11 07:42:57 +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
Yann Leboulanger 3f838e5f3e don't request jabber:iq:last and jabber:iq:version to real jid in a (semi) anonymous room, even if we're moderator and we know the real JID. Fixes #3454 2008-07-11 06:21:19 +00:00
Yann Leboulanger 4db9685849 add mrim transport icons. Fixes #4078 2008-07-10 12:18:26 +00:00
Brendan Taylor ebcb659196 improved esession auth messages 2008-07-09 03:10:50 +00:00
Brendan Taylor 75027b6e0c change auth icon when SAS is verified 2008-07-09 02:11:42 +00:00
Brendan Taylor 2e97cc3adb snagged tango security icons from gnome-icon-theme 2008-07-09 02:03:57 +00:00
Stephan Erb c99048b02f Fix two caps related tracebacks:
Quick fix: What does not exist cannot support anything. Fixes #4031.
Fix variable referencing. Fixes #4076.
2008-07-08 19:15:54 +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
Brendan Taylor 8da186bffb fix a couple of GC and PM TBs 2008-07-07 03:51:05 +00:00
Stephan Erb 40c2b97c99 Redraw family after readding. See r9894 2008-07-06 22:55:42 +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
Jean-Marie Traissard 926953252b Make nick completion work fine with an empty refer_to_nick_char
Make nick completion sorted  case-insensitive. Fixes #4063. (was already IMO)
Restore #2975 way. Last nick that highlighted us are first. Fixes #2975.
2008-07-06 22:24:19 +00:00
Stephan Erb eda061e15d Don't crash when we receive contacts that have a group tag assigned multiple times.
Remove some usage of has_key() in the contacts module. It is a bit slower (method overhead) and will be deprecated soon.
In roster_window. make a small if-clause more pythonic.
2008-07-06 21:35:19 +00:00
Yann Leboulanger 2f857870f3 add caps_* arguments in create_contact 2008-07-05 19:16:04 +00:00
Yann Leboulanger 4c33f4d478 typo 2008-07-05 19:08:15 +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 3ad1f9afed remove useless print 2008-07-05 18:25:39 +00:00
Yann Leboulanger 32bb251381 typo 2008-07-05 18:25:09 +00:00
Yann Leboulanger 1e636e7824 warn before connecting without PyOpenSSL. fixes #4065 2008-07-05 18:07:32 +00:00
Stephan Erb 0671e6c865 Correctly count metacontacts in non merged accounts mode if we have metacontacts over several accounts. 2008-07-05 06:33:49 +00:00
Stephan Erb 215fdc964a Count metacontacts only once.
Remove timing information for roster drawing.
2008-07-04 21:29:46 +00:00
Brendan Taylor e32b184cf7 fix GroupchatControl session-related TB 2008-07-04 00:30:07 +00:00
Brendan Taylor 17844361bb sesison-related TB fixes 2008-07-03 23:19:44 +00:00
Yann Leboulanger 2fd4ea7637 keep caps info when we create a contact instance from groupchat_contact instance 2008-07-03 21:43:28 +00:00
js 9ce8e28c0a Fix missing ). 2008-07-02 12:27:12 +00:00
Yann Leboulanger 26785a25f1 fix traceback when unblocking a group. fixes #4074 2008-07-02 10:57:31 +00:00
js 46913c541b XEP-0184 uses the new caps-checking way now. 2008-07-02 10:48:15 +00:00
js 0405981b15 Added a function to check for specific features. This makes
implementing a later coming fallback to disco rather easy.
2008-07-02 09:20:49 +00:00
js 38760989d1 Typo. 2008-07-02 08:47:01 +00:00
js 62fe1c72e3 Use caps to determine remote clients' support for specific features.
Caps is now used for: File Transfers, MUC Invites, Ad-Hoc Commands.

TODO:
 * Also handle it this way for typing notifications
   (This might give some trouble / compatibility issues)
 * Fall back to service discovery if no caps are available. Otherwise,
   we break compatibility with a lot of clients. (Asterix?)
2008-07-01 10:26:50 +00:00
Stephan Erb a836c7eca9 Fix really bad modelfilter bug that may have caused segfaults.
This also fixes the problem of showing the wrong icon when expanding metacontacts.

Example:
We have the groups A, B, C in our child model
But only A and C are visible (and therefore in modelfilter)

Imagine we have a childIter_G pointing to group B
Getting its path in the childmodel, will give us (lets say) 2
2 means now the second group/row in the CHILD model
We now pass this to the tree and tell him "Expand row 2"
The tree itself is looking at the 2nd row of modelfilter: "Hey modelfilter, expand row number 2"

For modelfilter row number 2 is C and NOT B
2008-06-30 22:23:07 +00:00
Stephan Erb a1f595b78f Commit two new assert statements in roster window.
We are not absolutely sure why some things are happening. Maybe that will help tracing the strange bugs.
2008-06-30 21:27:04 +00:00
Brendan Taylor 3a94e595e5 missed a / in </b> 2008-06-29 16:25:10 +00:00
Brendan Taylor 908bf97fbc fix esession toggling 2008-06-29 15:57:07 +00:00
Brendan Taylor b490904454 make esession authentication warning less obtrusive 2008-06-29 04:39:29 +00:00
js 408d3b4ff6 Revert r9859 as this killed the stream.
This isn't an easy fix, we need to stop using expat in namespace aware
mode.
2008-06-29 01:40:49 +00:00
js 23cdc3fd6f Don't disconnect on unbound prefixes.
Fixes #3083. I can't believe this was unfixed for so long, as it's
really a rather easy fix.
2008-06-29 01:25:52 +00:00
js 6b3414552a Leopard's X11 is started automagically - we don't need this anymore. 2008-06-28 23:05:14 +00:00
Stephan Erb 81dfec2b2a Close preset messages popup before closing the status window. Otherwise GTK will freeze when the window is closed after the inactivity timer has expired. Fixes #4052 2008-06-27 21:11:08 +00:00
Yann Leboulanger 2f14a995ee don't send our presence when we unblock a contact and we are invisible. Fixes #4001 2008-06-27 16:48:05 +00:00
Yann Leboulanger db3ddc71ff prevent TB when reading pending events. Fixes #4035 2008-06-27 15:56:09 +00:00
Yann Leboulanger 7b5a692c3c correctly escape jids in caps 2008-06-27 15:19:00 +00:00
Yann Leboulanger db09ad11d7 entity capabilities for groupchat contacts. fixes #4033 2008-06-27 15:07:15 +00:00
Jean-Marie Traissard a9877f14dd [erlehmann] Fixed regular URL matching expressions for "-". 2008-06-27 10:50:09 +00:00
Jean-Marie Traissard 65ec746e4f Fix ctrl + tab (get_control called with too much parameters) 2008-06-27 10:00:27 +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
Stephan Erb 766decde58 Fix typo. 2008-06-26 17:47:28 +00:00
Stephan Erb 2cd24aa8ae Do not update metacontacts when nothing has changed. Fixes sending metacontact info to server when we expand a groupchat. 2008-06-26 14:09:27 +00:00
Yann Leboulanger a62328ecd3 remove duplicate function, simplify logic 2008-06-26 11:30:13 +00:00
Yann Leboulanger 371a38c91c increase xmpppy verbosity when we use -l gajim=DEBUG 2008-06-26 10:01:12 +00:00
Stephan Erb 2c83acb614 Various roster_window and modelfilter fixes.
* Do not double escape group names
 * Try to remove SelfContact on disconnect only once
 * Do not show minimized groupchats which were minimized after disconnect
 * Always reset group expand state after adding a contact to roster.
2008-06-25 13:15:05 +00:00
Yann Leboulanger 9457c28a63 don't try the old (XEP-018) way to go invisible. It's not XMPP complient. That prevent to show the we are invisible but we are not. Fixes #4012 2008-06-25 09:25:43 +00:00
Yann Leboulanger d2b5b31bde acknowledge privacy list set iqs as required by XEP-0016 2008-06-25 07:35:35 +00:00
Yann Leboulanger 16fc7508ae remove unused function 2008-06-25 07:13:42 +00:00
Yann Leboulanger d4c8cb8b15 don't think connection to server failed when only first connection attempt failed when creating a new account 2008-06-25 06:56:03 +00:00
Stephan Erb e17cbf0da0 Remove unused function. Make remove_groupchat more solid. 2008-06-24 22:15:10 +00:00
Brendan Taylor d885e05500 don't send thread ids in message receipts unless there's a thread 2008-06-24 01:17:02 +00:00
Yann Leboulanger 9512a941ad mood and activity menuitem changes to Checkmenuitem 2008-06-23 19:42:40 +00:00
Yann Leboulanger bed750410e ability to ignore a transport contact. see #3984 2008-06-23 16:21:21 +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
Yann Leboulanger d764cc26be when we right click on a word in conversation textview, even if it's not selected, show actions menuitem to look in dictionary and so on. see #2874 2008-06-20 09:31:15 +00:00
Yann Leboulanger 8fed8ac0ed handle unknown message type as 'normal'. fixes #3977 2008-06-20 07:17:27 +00:00
Yann Leboulanger ef0b115710 quick fix for private messages until we support caps for them. see #4033 2008-06-20 06:34:24 +00:00
Yann Leboulanger 3d2e97d251 when we are disconnected from server, we then try to reconnect only with the type (tls, ssl, plain) that worked first time. Fixes #3896 2008-06-19 18:05:15 +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
js 9c75374da4 Use the namespace variable. Sorry, forgot to change that here. 2008-06-17 18:17:30 +00:00
js abdd43e5eb Type in NS. 2008-06-17 18:13:23 +00:00
js 9634f98250 * Implemented XEP-0184 section 5.
* Added NS_RECEIPTS to protocol namespace list.
* Show our support of XEP-0184 in caps.
* Added a big, fat warning to get_contact as this does not work as
  expected.
* There was some strangeness in our XEP-0022, it added an id tag to
  the x tag, which isn't mentioned anywhere in the XEP. And for some
  strange reason, that id even was the same all the time.
* Fixed a typo.
2008-06-17 16:03:21 +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
Yann Leboulanger 1d745c1c9d use SSLv23 method (it support SSLv2, v3 and TLSv1) instead of only TLSv1 method as some server (gmail) don't support TLSv1 method. fixes #3786 2008-06-16 14:12:59 +00:00
Yann Leboulanger 2f6106bda5 don't allow /ping command for zeroconf account. Fixes #3685 2008-06-16 12:56:16 +00:00
Jean-Marie Traissard 1712fee325 [sgala] Prevent TB 2008-06-16 09:51:03 +00:00
Yann Leboulanger c967351d36 don't allow to block a transport contact. Fixes #3984 2008-06-16 07:31:26 +00:00
Stephan Erb df1be596e4 Correctly update metacontact icon on expand when a child has pending events. 2008-06-16 00:00:52 +00:00
Stephan Erb 0d27f521d4 Do not hide big brother contacts when a child has pending events. Fixes #3921 2008-06-15 23:51:40 +00:00
Stephan Erb c5f7922e29 Two roster sort fixes.
* Change metacontact ordering. Fallback to priority only if two contacts have the same show, not the other way round.
 * Move contacts that just signed out to the bottom of the group, not to the top.
2008-06-15 23:03:51 +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
Yann Leboulanger 18d8f98f3c add "other" to all sub-activities and fix "Having an appointment" activity. Fixes #4019, #3981 2008-06-15 18:13:03 +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 5ddb2829f3 Do not instantly recalibrate metacontacts when the last online brother signs out. Fixes #3880. 2008-06-13 22:54:36 +00:00
Stephan Erb b38c45f6fa Show correct URL in bug buddy. Kudos to vArDo :-) 2008-06-13 22:47:41 +00:00
Yann Leboulanger 1ebe587886 fix number of parameters to session.receives in zeroconf. Fixes #4015 2008-06-13 15:59:04 +00:00
Yann Leboulanger e807c056d3 remove Z char (meaning UTC) in received timestamp. fixes #3796 2008-06-13 15:34:55 +00:00
Brendan Taylor e4aa0de7f7 don't make submenus in the Actions menu if we've only got a zeroconf account and a normal account 2008-06-13 02:18:16 +00:00
Yann Leboulanger bb8df6b540 remove old comment in caps.py 2008-06-12 15:16:36 +00:00
Brendan Taylor 82b30c0791 CapsCache: made docstring match the API, fixed minor bugs, added tests 2008-06-12 03:56:47 +00:00
Brendan Taylor 00b7e9823f fix lack of notification 2008-06-12 03:56:41 +00:00
Stephan Erb f69299f6ff Add missing import. Fixes PEP tune checkbox toggeling. 2008-06-11 23:56:11 +00:00
Stephan Erb f4a10ad5a9 Comment non working callback, but still keep it for reference. 2008-06-11 21:44:04 +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
Brendan Taylor 3ec61df48b minor fixes for ctrl.set_session 2008-06-10 02:58:04 +00:00
Stephan Erb ce0910321d Some fixes for draw_contact.
* show correct expand icon for metacontacts in different groups
 * only redraw parent when really necessary
 * remove obscure code
 * fix draw_parent_contact
2008-06-09 22:53:45 +00:00
Stephan Erb 11f9800bec Create new method for extracting the nearby_family. DRY! 2008-06-09 21:01:12 +00:00
Stephan Erb 6e442a50c8 Fix var usage.
(Commit correct hg rev :-) )
2008-06-09 18:31:05 +00:00
Stephan Erb db5b3c724b Introduce _recalibrate_metacontact_family()
Do not risk invalidating child_model iters when redrawing a contact.
Move logic to update the family when the big brother has changed to an extra function.

ToDo:
 * nearby_family code duplication
 * totaly restructure and cleanup draw_contact
2008-06-09 18:27:40 +00:00
js 6fe9bee70b * Fixed a BT when receiving receipt request for offline messages.
* Fixed a BT when receiving receipt request for users not in roster.
2008-06-09 15:04:13 +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 d0b15bf5fd Don't return 1 on error, but None. 1 could also be a message ID. 2008-06-08 16:54:59 +00:00
js 593ed0c6d8 * Fix passing of message ID.
* Don't asnwer to receipt requests from users not in roster.
2008-06-08 15:51:55 +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
Jean-Marie Traissard 0d645437d8 Don't act like if self contact is in group General. See #4000.
Don't make General group visible when we have self contact.
2008-06-08 14:35:40 +00:00
Jean-Marie Traissard 40e360d1c8 [modelfilter]Fix row behind that expand when moving contact problem.
This code seems not necessary. But why does that created that problem ?
It seems for some reason, path is not good. Probably the iter itself is not good. So expand act on the wrong
group (I can proove that).
2008-06-08 13:20:46 +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
js 8fefd0ede4 Comment options. 2008-06-07 19:52:13 +00:00
js a495d090c3 Initial XEP-0184 support.
TODO:
 * Implement section 5.
 * Think of a way to show in GUI
    Possible way: Grey out the sent msg until we receive a <received/>,
    but only if we know the other end supports XEP-0184.
 * Maybe implement section 6?
2008-06-07 19:47:19 +00:00
Jean-Marie Traissard 7fbfa0547d Regroup window.present() calls. See #3908. 2008-06-05 15:09:17 +00:00
Jean-Marie Traissard e487aa7802 Change the way to remember last message time in groupchat again. Save the time on
disconnection or exit. Previous version seemed perfect, but if server don't have the
same exact time than us (always), lots of messages can be logged twice. Here we will
lost log for messages that were sent beetween we lost connection and we see it. But that
seems better for me. For previous version, see [9516].
2008-06-05 11:18:33 +00:00
Jean-Marie Traissard a0f57f5e99 Simpler way to do [9756], thanks steve-e 2008-06-04 18:58:14 +00:00
Brendan Taylor cb1c24ff7d remove empty branches of sessionless_ctrls (fixes single window mode) 2008-06-03 23:54:14 +00:00
Jean-Marie Traissard e5b2e38792 Fix regression introduced in [9727]. Do not fail if the jid line contain 'Enter
JID or Contact name' or something at opening.
2008-06-03 18:44:32 +00:00
Yann Leboulanger d1762dd9a0 improve new gmail e-mail popup window. Fixes #3252 2008-06-03 14:15:57 +00:00
Yann Leboulanger e4d5625210 fix argument order in new_chat 2008-06-03 06:06:42 +00:00
Brendan Taylor ccca9332c6 fix undefined 'session' variable in _messageCB 2008-06-03 01:13:30 +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
Brendan Taylor 7b6b6de1c5 fix TB in move_from_sessionless 2008-06-02 23:26:23 +00:00
Yann Leboulanger 03cbc6e2d5 ability to rename zeroconf account. Fixes #3945 2008-06-02 21:22:35 +00:00
Stephan Erb fa48c480ff Fix modelfilter regression. Renaming a group duplicated it.
Even make it work in merged accounts mode.
2008-06-02 17:59:59 +00:00
Yann Leboulanger 3fe89676ac don't allow to send custom status nor revoke subscription for transport contacts. fixes #3984 2008-06-02 10:27:16 +00:00