Commit Graph

799 Commits

Author SHA1 Message Date
Yann Leboulanger 2c2e4201d7 merge from trunk 2010-05-25 16:33:40 +02:00
Éric Araujo 9b5ee1e13b convert tabs to spaces in source code thanks to reindent.py
Also use sed to remove now unneeded Vim lines, 2to3 -f ws_comma to fix
some whitespace, and fix some other madness manually.
2010-04-08 01:20:17 +02:00
Thibaut GIRKA ff34c61caa Merged local changes 2010-03-21 21:47:34 +01:00
Thibaut GIRKA fbf9a769d8 Delete invalid jingle sessions. Kick audio/video availability from jingle states.
Fixes #5668, #5651
2010-03-21 21:45:45 +01:00
Yann Leboulanger 20fbaff581 reset tooltip on send file button when filetransfer become available. Fixes #5669 2010-03-21 09:36:51 +01:00
Thibaut GIRKA ab0f7899ad Refuse multiple sessions and implement alternative-session; make jingle GUI a bit more reliable. 2010-03-15 21:34:28 +01:00
Thibaut GIRKA e5f95be6e9 Oops, missed a delete_jingle_session last time. 2010-03-14 22:01:48 +01:00
Yann Leboulanger 86acbd398c compute keycode and insert keycode only once. Fixes #5636 2010-03-12 20:57:35 +01:00
Yann Leboulanger 2be53c4aac update my copyright to 2010 2010-03-11 16:52:36 +01:00
Yann Leboulanger 6ec5d3e689 fix Ctrl+C handling. Fixes #1503 2010-02-19 13:43:11 +01:00
Yann Leboulanger dde42ddc75 fix CTRL+C with non-latin keyboard. Fixes #1503 2010-02-18 22:05:07 +01:00
Yann Leboulanger 5cf27f1b11 improve bigger avatar behaviour in case on_avatar_eventbox_enter_notify_event is called twice (when using unclutter). Fixes #5590 2010-02-12 22:35:07 +01:00
Éric Araujo 357d7db07d fixed some whitespace thanks to 2to3 -f ws_comma 2010-02-10 19:24:11 +01:00
Éric Araujo 0408b35cfb convert tabs to spaces in source code thanks to reindent.py
also use 2to3 -f ws_comma to fix some whitespace
2010-02-10 17:59:17 +01:00
Yann Leboulanger c9ad0f5d7d fix pylint warnings 2010-02-10 16:17:09 +01:00
Yann Leboulanger fa05d88b2b merge from default branch 2010-02-08 22:25:41 +01:00
Éric Araujo fedd7dc8e2 convert tabs to spaces in source code thanks to reindent.py
holy diff batman!
2010-02-08 15:08:40 +01:00
Yann Leboulanger 3ada2293db revert unwanted changes in [428adcf83dc7] 2010-02-05 07:21:12 +01:00
Yann Leboulanger 9230f12496 [zimio and me] Ask what to do when we want to unregister from a server but connection fails. Fixes #324 2010-02-03 19:59:41 +01:00
Yann Leboulanger e462beba42 [zimio & me] undo functionality in message text imput field. Fixes #4825 2010-01-24 11:44:54 +01:00
Yann Leboulanger 99872d8ff8 split message_window.ui to separate chat_control.ui and groupchat_control.ui 2010-01-22 21:17:59 +01:00
Yann Leboulanger 956accf010 Bye bye glade, Hi gtk builder. Fixes #4945 2010-01-22 19:57:59 +01:00
Yann Leboulanger 3a76966c14 merge from default branch 2010-01-19 16:37:14 +01:00
Yann Leboulanger a19cbbfc9d remove pysexy dependance, PyGTK2.18 supports links in gtk.Label 2010-01-12 22:30:46 +01:00
Thibaut GIRKA e3f16c6371 [Jingle] Volume levels are saved, audio UI shows up even if there are errors, until the session ends 2010-01-10 16:31:00 +01:00
Yann Leboulanger e8b88db629 prevent traceback when closing chat control without jingle enabled. Fixes #5544 2010-01-06 23:15:35 +01:00
Yann Leboulanger 0981c7759e buffer -> _buffer. buffer is a module in python 2010-01-06 18:13:12 +01:00
Yann Leboulanger 59e7d8de8e close jingle sessions when we close chat control. Fixes #5541 2010-01-05 22:14:52 +01:00
Yann Leboulanger d1a9a6983a EncryptedSession cannot be an ArchivingSession 2009-12-10 17:40:48 +01:00
Yann Leboulanger d15897e50e fix string replacement with % (% seems to be prioriter than +). Fixes #5494 2009-12-07 20:42:24 +01:00
Yann Leboulanger 07be0727de [Florob] show in roster and message window geolocalisation of a contact. Fixes #5485 2009-12-07 18:32:42 +01:00
Yann Leboulanger 619518204c ability to change mic volume through GUI (doesn't work for the moment) 2009-12-02 21:37:21 +01:00
Yann Leboulanger 8bb1aaf382 connect jingle keys (for dtmf) through code instead of glade 2009-12-02 21:21:18 +01:00
Yann Leboulanger 5a3ef285a5 fix some archiving session negotiation bugs
print archving negotiation result in chat control
2009-12-02 11:52:49 +01:00
Yann Leboulanger 98e1ab5637 add new GUI to control audio connection. (NOTE: sliders do nothing for the moment) 2009-12-02 10:17:33 +01:00
Yann Leboulanger 002b8a720f finish using icon theme. Fixes #2378 2009-12-01 15:50:58 +01:00
Stephan Erb 9b7ae8cac3 Small cleanups for avatar save. Also fixes #5461.
* set default file type for avatars centrally
 * remove client side decision logic determing if a avatar loookup shall happen for a groupchat contact or for a normal contact
 * remove unused method (this one was triggering the traceback in #5461)
2009-11-29 23:06:49 +01:00
Yann Leboulanger 5b10d8fe5c base of using icon themes. see #2378 2009-11-27 16:42:32 +01:00
Thibaut GIRKA 0edb624fec Renamed a few methods, refactor on_*_button_toggled, use getattr/setattr instead of eval/self.__dict__ 2009-11-26 21:53:44 +01:00
Yann Leboulanger a59011138b merge diff from default 2009-11-25 21:15:36 +01:00
Alexander Cherniuk b6c4aaba6f Refactored doc-strings 2009-11-25 15:01:40 +02:00
Stephan Erb aa53988fd1 Similar to update_pep, unify towards draw_pep of the RosterWindow. 2009-11-15 23:23:56 +01:00
Stephan Erb 338cb11dcc Unify update_mood, update_tune, update_activity by using a single update_pep(pep_type) method. 2009-11-15 22:54:20 +01:00
Stephan Erb 30191888ba Create asPixbufIcon and asMarkupText functions on the UserActivity class. 2009-11-15 16:52:19 +01:00
Stephan Erb 5f4db2eed9 Unify updating of accounts and contact pep information. Implement and use asMarkupText() for tunes. 2009-11-15 10:55:31 +01:00
Stephan Erb e41e484855 Proof of concept: Move markup / pixbuf determination logic from the UI to the different PEP classes.
Currently this is only done for UserMood. We can decide later on (if needed), to move the asPixbufIcon and asMarkupText methods to a more appropriate place.

Goal is to remove as much redundant code as possible.
2009-11-15 00:12:15 +01:00
Mateusz Biliński 70731dbab7 Merged default branch into plugin-system branch. 2009-11-14 21:15:27 +01:00
Yann Leboulanger e4128f5c29 merge from default 2009-11-13 19:45:11 +01:00
Stephan Erb 022003239d Merge changes from default branch into refactoring branch
Hg: changed data/pixmaps/mic_active.png
2009-11-11 23:37:46 +01:00
Yann Leboulanger d70b74e6b6 [Gotham48] add nice icons to toggle audio / video 2009-11-08 10:08:15 +01:00
Stephan Erb 89b1c6a7df Move method close to data.
gajim.contacts.contact_from_gc_contact(gc_contact) is now gc_contact.as_contact()
2009-11-05 16:25:13 +01:00
Stephan Erb a9f5bb59d7 Merge changes from default branch into refactoring branch 2009-10-31 17:25:47 +01:00
Yann Leboulanger fcafab60a7 merge jingle branch to default branche 2009-10-29 11:55:05 +01:00
Yann Leboulanger f550144530 switch from gtk.Tooltips to gtk.Tooltip. Fixes #3471 2009-10-29 11:35:22 +01:00
Thibaut GIRKA 1c33d42158 Merge default to jingle 2009-10-29 10:19:58 +01:00
Thibaut GIRKA 7ae959dbba Avoid insane recursion 2009-10-29 10:08:22 +01:00
Stephan Erb 5894ce5341 Merge changes from default branch into refactoring branch 2009-10-27 23:18:21 +01:00
Stephan Erb 213fd5a8ed Update a few outdated comments. 2009-10-27 22:48:47 +01:00
Stephan Erb 33fe53ff7d Swtich from old to new caps API.
Now we do:

contact.supports(feauture) instead of gajim.capscache.is_supported(contact, feature)
2009-10-27 22:41:39 +01:00
Yann Leboulanger 5a51f09491 merge roster_contact_context_menu.glade, chat_control_popup_menu.glade and zeroconf_contact_context_menu.glade 2009-10-27 18:58:27 +01:00
Yann Leboulanger 503aebd919 [change window icon according to the content (muc, chat). Fixes #4300 2009-10-23 10:02:45 +02:00
Yann Leboulanger 760e0fb48f refactor jingle functions in chat_control.py 2009-10-16 21:48:28 +02:00
Thibaut GIRKA 313f002958 Fixes an indentation error aswell as the previous commit 2009-10-16 20:21:42 +02:00
Thibaut GIRKA d495deaa02 Some rewriting in set_audio_state/set_video_state 2009-10-16 19:36:55 +02:00
Thibaut GIRKA bc90bc1157 Destroy session when remote signs off 2009-10-16 19:04:04 +02:00
Thibaut GIRKA ab6510db38 merge default branch to jingle 2009-10-16 17:19:33 +02:00
Yann Leboulanger 0d37f4f64b better session handling:
- when a new contact with higher prio connect, detach session from chat control. Fixes #5021
 - don't re-use a session that was for another sessin

Tests are more than welcome!
2009-10-06 17:35:25 +02:00
Thibaut GIRKA b2b8ac4b76 Connect only if user accepts, move jingle detection to 'update_toolbar'
This allows jingle availability to be updated if contact sign in/out.
This patch will also wait for user acceptance before connecting.
This will, among other things, ensure that audio/video state won't be set to
JINGLE_STATE_CONNECTING while the connection is already up.
2009-10-03 22:40:12 +02:00
red-agent 958d937d5c Dropped in the reworked version of the new command system
The reworked version has refactored and simplified architecture, which also
involves simplified dispatching.
2009-10-02 23:57:11 +03:00
Yann Leboulanger 6781600942 add a graphics optio nto all print text function to not display emoticons and latex formulas in nicks. Fixes #4651 2009-10-02 16:28:51 +02:00
Yann Leboulanger c5b60e8df5 don't allow to check "enable e2e encryption" when enable_esessions is False. Fixes #5295 2009-10-01 09:51:10 +02:00
Yann Leboulanger 20755acedc fix typo 2009-09-25 20:40:53 +02:00
Thibaut GIRKA 77541f3e7f support for content-{add,reject,accept}, new helpers, and other few things 2009-09-25 19:32:13 +02:00
Yann Leboulanger a051d1ec95 initialize var before they are used 2009-09-25 15:47:43 +02:00
Yann Leboulanger a57448d083 fix some missing things in video GUI 2009-09-25 15:29:22 +02:00
Yann Leboulanger 32965a948e new GUI to start audio and video sessions. TODO: ability to add/remove audio/video content to an existing session 2009-09-25 13:52:44 +02:00
Yann Leboulanger 40199e359c farsighr module is now optional. Fixes #5278 2009-09-20 20:46:03 +02:00
Thibaut GIRKA c162780a58 coding standards, and other few things 2009-09-19 17:24:59 +02:00
Thibaut GIRKA 6b99db8980 merge default branch to jingle 2009-09-19 16:35:47 +02:00
Thibaut GIRKA 5503c80e2a fix some erros from my last commit, fix conditions for session initating and acceptance 2009-09-18 20:17:35 +02:00
Thibaut GIRKA bd9d793ad8 send messages to the gui, wait for codecs, and other things
JingleSession now sends messages about errors or session terminating to the GUI.
Another thing is that it'll wait for all transports candidates and all codecs to be ready before
starting or accepting a session. This is required by video, which is only missing a GUI. :)
2009-09-17 23:36:26 +02:00
red-agent 030738db2d Merge the new command system in 2009-09-17 23:22:48 +03:00
Yann Leboulanger f5b1c2dca7 improve GUI for jnigle 2009-09-17 22:21:06 +02:00
red-agent e0e4dd6c31 A bunch of fixes for the command completion 2009-09-17 19:06:38 +03:00
Yann Leboulanger 12baddbdc3 start of GUI stuff for VOIP 2009-09-17 14:48:15 +02:00
red-agent 39eef45bca Command auto-completion along with some fixes 2009-09-17 13:25:25 +03:00
Yann Leboulanger ebe93d25ff fix memory leak with gtkspell. Fixed #2025 2009-09-15 21:19:38 +02:00
Yann Leboulanger 651e801334 correctly change the resource of a control. Fixes #5261 2009-09-15 17:41:47 +02:00
Thibaut GIRKA 32ad59aa42 jingle: move from the old farsight to farsight2,
better compliance to the last version of XEP 0166, 0167 and 0176
2009-09-13 11:02:49 +02:00
red-agent cae86299e4 Rolled in a bunch of fixes for the command system 2009-09-13 00:22:17 +03:00
red-agent ae0f32d922 Dropped in the brand new and shiny command system 2009-09-12 16:51:21 +03:00
red-agent c38e7050f5 Swept everything related to commands 2009-09-11 04:54:26 +03:00
Yann Leboulanger 1f7b19180d merge default branch to jingle 2009-09-08 12:01:09 +02:00
Yann Leboulanger bbb75bcdf1 clean spell languages list only once. Fixes #5228 2009-09-04 21:02:55 +02:00
Yann Leboulanger cac215909b disable RST generator only for GPG encrypted messages, not E2E 2009-08-30 11:58:41 +02:00
Anaël Verrier b64475a2d9 * first draft for archiving negotiation 2009-08-17 19:32:17 +02:00
Yann Leboulanger 59384fa689 don't depend on GTK2.14. Fixes #5213 2009-08-07 23:43:19 +02:00
Yann Leboulanger ca0b16f62b don't take into account style of not realized widgets. Fixes #5211 2009-08-06 18:34:53 +02:00
Yann Leboulanger 0492b82384 [danguy] log_encrypted_sessions is no more a global variable! Fixes #5132 2009-07-02 08:20:17 +02:00
Yann Leboulanger 008c98da44 some coding standards 2009-06-26 19:33:46 +02:00
Yann Leboulanger a49a3a63e1 hide bigger avatar when switching tab. 2009-06-23 16:42:32 +02:00
Mateusz Biliński 6fecd84b16 Fixed log_calls decorator arguments in a few plugins. Fixed Acronyms Expander plugin (not working due to bad auto-merge). Added few comments. 2009-06-15 07:56:08 +02:00
Mateusz Biliński 7b0a099feb Merge plugin-system with default branch. 2009-06-13 23:25:46 +02:00
Yann Leboulanger b583fa2479 fix missing import in trunk. Fixes #5078 2009-06-07 20:59:04 +02:00
Mateusz Biliński 018bda5a5f Merged default branch with plugin-system branch. Not all elements are fully
functional. This should be considered as sync commit.
2009-06-07 00:00:03 +02:00
Yann Leboulanger 0e11e16bc2 mark groupchat messages as read when we scroll at the end in groupchat window 2009-06-04 21:45:46 +02:00
Yann Leboulanger 4458db5d2c [Yrogirg & I] add a first quote ability. see #2943 2009-04-30 13:36:29 +00:00
Yann Leboulanger 9ea2a5c677 we now depend on GTK2.12. Remove test for older versions. Fixes #4996 2009-04-27 19:28:53 +00:00
Yann Leboulanger f74ec76e57 ability to select status message and room subject in banner. Fixes #4879 2009-04-26 18:57:18 +00:00
Yann Leboulanger 412d9b4d87 add tooltip explaining why file transfer button is diabled. Fixes #3948 2009-04-25 22:29:22 +00:00
Yann Leboulanger fdcf75ae59 minimize groupchats when closing several windows at the same time. Fixes #4987 2009-04-23 07:26:08 +00:00
Yann Leboulanger 0c27b86cc1 Warn user before closing chat window with tabs where we can loose data. Fixes #3645 2009-04-08 16:28:51 +00:00
Yann Leboulanger 8514e51675 factorize send_file action in chat / groupchat / private chat. see #3948 2009-04-07 17:07:04 +00:00
Yann Leboulanger e763627a6c disable send_file button when we don't know the resource. Fixes #4884 2009-03-25 12:12:23 +00:00
Yann Leboulanger 5301dcd4a0 check OSError from gtkspell.py. Fixes #4897 2009-03-11 09:17:23 +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 bec8b7ff15 small comment 2009-02-10 21:42:55 +00:00
Yann Leboulanger beb32a3d1c handle error messages correctly. Fixes #4783 2009-02-09 19:38:05 +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 d673e04935 negotiate esession only if enable_esessions is activated. Fixes #4738 2009-01-30 16:48:15 +00:00
Yann Leboulanger ffb52eb626 [Dicson] option have moved per account. Fixes #4748 2009-01-29 20:16:34 +00:00
Yann Leboulanger eba3911dd7 set speller language correctly, and show correct error message. Fixes #4737 2009-01-28 13:16:02 +00:00
Yann Leboulanger 03aa7de56c initialise a pariable before it's used. Fixes #4692 2009-01-17 12:30:24 +00:00
Yann Leboulanger e629ceb637 don't allow to send xhtml when gpg is active (because this part is not encrypted). Fixes #4650 2009-01-16 15:01:36 +00:00
Yann Leboulanger 54283f7779 let banner size increase if we set a big font in it. Fixes #4670 2009-01-12 17:25:27 +00:00
Brendan Taylor aeff9046ab a fix for autonegotiation after esessions were disabled 2008-12-13 18:10:37 +00:00
Yann Leboulanger d820977e16 ctrl+Insert copy text too. Fixes #4580 2008-12-13 14:32:37 +00:00
Yann Leboulanger 2633b5bf16 don't require to still be in the room to read pm. Fixes #4570 2008-12-11 21:15:52 +00:00
Yann Leboulanger 28bc50316e better keypress handling 2008-12-05 14:12:31 +00:00
Yann Leboulanger e389e0b16b [thorstenp] remove whitespace at eol 2008-12-03 21:56:12 +00:00
Yann Leboulanger 1d94f0fbff fix some typo. Fixes #4545 2008-12-03 20:45:26 +00:00
Yann Leboulanger 60ba33eb31 [thorstenp] fix possible undefined loop variables 2008-12-03 17:38:16 +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 7701f29beb [thorstenp] fix undefined variables 2008-12-02 15:10:31 +00:00
Yann Leboulanger eed5dc4e72 [thorstenp] remove useless semicolons 2008-12-02 13:58:54 +00:00
Yann Leboulanger 1d4455bc20 fix missing argument 2008-11-30 18:59:34 +00:00
Yann Leboulanger 941ab84d22 fix typo 2008-11-30 18:58:32 +00:00
js 68b41e43ae Also apply our notexistant caps trick to XHTML. 2008-11-30 18:16:11 +00:00
Brendan Taylor 2bb2d0132e don't autonegotiate after you've disabled e2e 2008-11-23 04:52:55 +00:00
Yann Leboulanger 7e14a4dd31 fix indentation 2008-11-20 15:47:20 +00:00
js 8bde5748f9 Actually, this caused problems. 2008-11-20 15:44:06 +00:00
js a1c1163d16 Only allow using XHTML if the receiver supports it. 2008-11-20 15:19:25 +00:00
Julien Pivotto 5a31ba2ef0 Very basic integration of xHtml GUI 2008-11-14 11:13:15 +00:00
Yann Leboulanger 7bc8f16012 [kalyan] don't show error when we press enter in chat while offline if enter is just for a line break. Fixes #3852 2008-11-10 13:27:25 +00:00
Yann Leboulanger a368839123 [thorstenp] import rst generator only when needed. see #4457 2008-11-05 18:25:40 +00:00
Brendan Taylor bd7bac578f partial fix for renegotiating pm e2e sessions after one party
disconnects
2008-10-25 19:48:01 +00:00
js 90b2d8fa8d Fix #4140. 2008-10-24 17:00:39 +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 dc5d7bcf7c [thorstenp] fix undefined variables 2008-10-20 18:05:33 +00:00
Yann Leboulanger 98255a0671 [thorstenp] remove useless ; 2008-10-20 15:16:01 +00:00
Brendan Taylor b9db39e0a9 disable autonegotiation if e2e is manually started or started by a
failed decrypt
2008-10-12 00:51:24 +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 567f1e17c1 [thorstenp] di not use emtpy except clauses 2008-10-11 09:37:13 +00:00
Yann Leboulanger eef9cf2de9 don't allow to enable GPG encryption if no GPG key is assigned.
Better getInfoDialog when no key is assigned. Fixes #4330
2008-10-08 20:11:06 +00:00
Yann Leboulanger 9d7c80d522 [thorstenp] replace has_key by key in dict. Fixes #4392 2008-10-07 20:41:59 +00:00
Yann Leboulanger feab799c3e auto-create per_option config when trying to write in a non-existing one. Fixes #4370 2008-10-04 10:20:14 +00:00
Yann Leboulanger 392cd3a77a show GPG info dialog when we click on the shield icon in chat window. Fixes #4330 2008-10-02 20:20:15 +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
Brendan Taylor 53e6204071 only print esession details once when opening a chat 2008-09-28 01:16:13 +00:00
Yann Leboulanger c876e8f65e don't remove contact instance when we remove last event if a chat is stil opened, but when we close the window. Should fix #4272 2008-09-16 21:51:48 +00:00
Brendan Taylor 9adc632d67 consolidate e2e status messages 2008-09-08 15:51:13 +00:00
Yann Leboulanger 9a8dd5db02 show better icon for send file menuitems / buttons. Fixes #4282 2008-09-08 11:27:37 +00:00
Yann Leboulanger 0ce5c0678e affect variable before using it. Fixes #4264 2008-08-31 12:09:13 +00:00
Brendan Taylor 5d6b60be68 fix GPG mysteriously turning on when you open a chat window 2008-08-30 02:50:10 +00:00
Brendan Taylor 32b56a2328 move most of is_loggable out of the session object. fixes #4103 2008-08-30 01:31:25 +00:00
Yann Leboulanger 26334c7064 fix some coding standards and remove + to merge strings in translated strings. fixes #4211 2008-08-26 11:10:13 +00:00
Yann Leboulanger 4549515669 some coding standards. Fixes #4211 2008-08-25 20:13:16 +00:00
Yann Leboulanger f00f22dd05 translate string correctly. fixes #4203 2008-08-25 18:10:18 +00:00
Yann Leboulanger 6f3cca4669 [Jeff Bailes] better strings 2008-08-25 10:06:22 +00:00
Travis Shirk 49ad57084e Updated copyright years for myself. 2008-08-22 03:15:54 +00:00
Travis Shirk 55c1868d92 Make the message control text entry grab focus when new controls are created and each time the tabs
are switched.  Fixes #4227
2008-08-22 03:03:15 +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 8bc9bc29ae * Big headers review
* Remove some licencing problems
 * To do: same for images
 * See #4200
2008-08-15 03:20:23 +00:00
Jean-Marie Traissard 34964401ab [acm] Typo in [10241] 2008-08-14 18:01:56 +00:00
Yann Leboulanger 7efaecc5d8 make a string translatable. Fixes #4203 2008-08-14 17:19:21 +00:00
Yann Leboulanger 4e52e954d0 use accel func for all key in chat controls. Fixes #1503 2008-08-14 16:17:32 +00:00
Yann Leboulanger d2669df77b fix some resource problems. see #3799 2008-08-12 08:53:09 +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 ab70491d56 correctly decide whether to autonegotiate after a session was replaced 2008-08-08 22:55:12 +00:00
Yann Leboulanger 5fbea47130 warning dialogs when closing a chat window are non blocking 2008-08-08 15:19:08 +00:00
Mateusz Biliński 16ac65e58b Improvements to GUI extension points handling - added method to remove these from PluginManager (memory optimization).
Removed logging from most of the code.
2008-08-03 13:29:11 +00:00
Yann Leboulanger 6967ced458 fix a translatable string 2008-08-02 08:14:30 +00:00
Yann Leboulanger fa2d983354 better transltion strings. see #4166 2008-08-01 09:30:36 +00:00
Mateusz Biliński 96cfc42060 Added files with Banner Tweaks plugin (initial version).
Few changes to PluginManager.
Added new GUI extension point related to draw_banner in ChatControlBase.
2008-07-31 15:30:20 +00:00
js 5a16f09b3e Fix a TB. 2008-07-30 14:00:21 +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
js a226760275 Make moods better translatable. 2008-07-29 19:02:57 +00:00
js 0fae75888a Fix a TB. 2008-07-29 17:53:24 +00:00
js b3767ac3da * text += '\n' + text is wrong.
* Don't call it markup if it's plaintext.
2008-07-29 16:33:21 +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
js d3b86d2105 Translate activity in tooltips. 2008-07-29 02:14:06 +00:00
js c06c258b2f Show activity in conversation window. 2008-07-28 22:33:20 +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
Brendan Taylor 094052eb7c fix some issues with the difference between Contacts and GC_Contacts 2008-07-26 01:16:24 +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 dcfeafd0c6 Start autonegotiation when the user starts typing. 2008-07-24 22:13:37 +00:00
js c484fdddf1 Show tooltip for chat states. 2008-07-24 22:11:48 +00:00
js 701fe4267f Fix a TB. 2008-07-23 18:34:26 +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 63524f79e9 Be consistent in the chat window. 2008-07-22 23:30:52 +00:00
js b9ea534850 Show user tune in conversation window. 2008-07-22 23:06:58 +00:00
js c5e679a078 Show mood in chat window. 2008-07-22 21:08:52 +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
Brendan Taylor 90098b1e34 make esession autonegotiation option per-account and per-jid 2008-07-20 15:06:21 +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
Brendan Taylor 913c434c80 update status in resource-specific chat windows 2008-07-19 18:31:45 +00:00
js f704701ba4 Support for displaying XEP-0184 receipts. 2008-07-18 20:24:34 +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 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 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
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
Brendan Taylor ebcb659196 improved esession auth messages 2008-07-09 03:10:50 +00:00
Brendan Taylor 2e97cc3adb snagged tango security icons from gnome-icon-theme 2008-07-09 02:03:57 +00:00
Brendan Taylor e32b184cf7 fix GroupchatControl session-related TB 2008-07-04 00:30:07 +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 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
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
Yann Leboulanger 2f6106bda5 don't allow /ping command for zeroconf account. Fixes #3685 2008-06-16 12:56:16 +00:00
Brendan Taylor 2b074aed41 pass the ChatControl around with printed_chat events 2008-06-14 16:49:48 +00:00
Mateusz Biliński 5dbe58507e Added 'chat_control_base' GUI extension point (now we are able to modify all chat controls - both normal and GC.
Added base version of AcronymsExpanderPlugin with some hardcoded acronyms. It uses newly added 'chat_control_base' extension point.
2008-06-09 11:46:29 +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 7fbfa0547d Regroup window.present() calls. See #3908. 2008-06-05 15:09:17 +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
Mateusz Biliński 95b1e45920 Initial commit related to plug-in system:
- basic PluginManager class that loads plugins from *.py files
  in given directories
- Singleton metaclass was created to use with PluginManager;
  notice: __init__ of class is called only once (not like in code
	that is included in Python Cookbook)
- variable to keep paths of plugin directories has been created
  (common.gajim.PLUGINS_DIRS); also added initilization of these
  paths to common.ConfigPaths
- added global variable with PluginManager object:
  common.gajim.plugin_manager
- created customized logger for plugin system ('gajim.plugin_system')
- created function decorator plugins.helpers.log_calls which logs
  each call of function/method; it also logs when function is left
- base class Plugin for plug-in implementation added; not much
  here - only empty class attributes: name, short_name, authors,
	version, description
- based on Plugin class, first plugin was created named
  LengthNotifierPlugin; it is used to notify users when they
  exceed given length of message during writing it (text entry
  field highlights)
- first GUI extension points works when ChatControl object
  is created (it is used in mentioned plugin)
- added 'epydoc.conf' file customized a little bit (file
	is also in trunk now)
- fixed indentation in common.sleepy module (also in trunk
	now)
2008-06-01 23:33:51 +00:00
Brendan Taylor 1796a6006b fix on_vadjustment TB 2008-05-31 00:54:57 +00:00
Yann Leboulanger 685707e2e0 check active tab with control variable, not jid. fixes #3876 2008-05-30 10:07:01 +00:00
Brendan Taylor f7874d29c7 reuse chat controls after session termination
fixes #3950
2008-05-23 23:27:08 +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
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
js 303a09d7c8 update_ui() doesn't call update_otr(). We want update_otr() here. 2008-05-19 18:57:14 +00:00
js ad5248f3dc Coding style. 2008-05-18 21:15:58 +00:00
js 0cc5b4c377 Lock icon didn't show authenticated correctly. Fixed. 2008-05-18 21:14:59 +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
js edf8738a39 Don't show events from buttons in advanced menu, only show them when
triggered via the banner right-click menu.
2008-05-17 13:14:34 +00:00
Brendan Taylor ade56853fe moved session.remove_events. fixes #3942 2008-05-14 00:34:02 +00:00