Commit Graph

486 Commits

Author SHA1 Message Date
Yann Leboulanger e01cb71d8f handle correctly when MUC server force us to change our nickname by sending a 303 error presence. Fixes #5055 2009-07-09 18:22:41 +02:00
Yann Leboulanger a49eea24ab ability to block / unblock MUC occupants. Fixes #5051 2009-06-27 12:29:55 +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 c7d4dc8bee prevent a traceback when we get a groupchat presence from unknown participant. see #5067 2009-06-04 18:06:50 +02:00
Yann Leboulanger b18d79b0a0 handle 210 status code in groupchat (Server changed our nickname) 2009-06-02 19:35:57 +02: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 fdcf75ae59 minimize groupchats when closing several windows at the same time. Fixes #4987 2009-04-23 07:26:08 +00:00
Yann Leboulanger dc69e49db6 don't send NS_MUX <x> element when we change nickname in room 2009-04-08 16:38:28 +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 2fc1532104 don't show "file-send-real-jid-is-known-warning" dialog when contact is known. see #3948 2009-04-07 11:08:12 +00:00
Yann Leboulanger 06d4188411 don't draw a black square for groupchat occupants that have no affiliation 2009-02-15 10:16:08 +00:00
Yann Leboulanger 43fe19d73e add a small square ti differentiate room member's affiliation. Fixes #3964 2009-02-12 13:12:38 +00:00
Mateusz Biliński 405f2d11b3 Removed premature triple-dots in contact's status message (MUC). Fixes #4741 (caused by changeset [11042]). 2009-01-30 00:52:48 +00:00
Mateusz Biliński b6b1f2bdb0 [dicson] fix #4741 (removed TBs in MUC) 2009-01-28 16:50:32 +00:00
Yann Leboulanger 554764400b coding standards 2009-01-28 12:12:13 +00:00
Yann Leboulanger 68cdc3a5f8 don't traceback when quitting a groupchat. Fixes #4684 2009-01-23 08:33:21 +00:00
Jean-Marie Traissard f8831b947d Faster and cleaner version of groupchat_control.needs_visual_notification().
Thanks to omega for idea.

Now also highlighted for @nick or <nick> but not for "Gajim" if you are "jim"
2008-12-21 20:41:14 +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 e389e0b16b [thorstenp] remove whitespace at eol 2008-12-03 21:56:12 +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
Yann Leboulanger eed5dc4e72 [thorstenp] remove useless semicolons 2008-12-02 13:58:54 +00:00
Yann Leboulanger 02230e0607 hide tooltip when we press a button in groupchat. Fixes #4479 2008-11-18 21:43:35 +00:00
Julien Pivotto 5a31ba2ef0 Very basic integration of xHtml GUI 2008-11-14 11:13:15 +00:00
Yann Leboulanger f1526df243 hide add bookmark menuitem in groupchat banner popup menu when room is already bookmarked 2008-11-11 19:15:55 +00:00
js 5b1eb90557 Handle bookmark button in chat window like we handle add contact. 2008-11-10 20:06:28 +00:00
Yann Leboulanger e706e86c2e disable bookmark button / menuitem when room is already bookmarked. Fixes #4156 2008-11-03 06:08:10 +00:00
Yann Leboulanger f5ae955764 show bookmark title instead of jid in tabs and roster. Fixes #4420 2008-11-02 14:31:11 +00:00
Yann Leboulanger bd8ae59a76 Use Alt+T to change subject in a room instead of Ctrl+T 2008-11-02 14:04:46 +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
Yann Leboulanger 98255a0671 [thorstenp] remove useless ; 2008-10-20 15:16:01 +00:00
Jean-Marie Traissard 269028ec78 GC are now opened without automatic switch to tab, stop them stealing current tab focus
when connected. Still no fix for #3908 :/
2008-10-13 08:01:22 +00:00
Yann Leboulanger 974543edf0 show minimized room in roster in red if we have been highlighted. 2008-10-12 19:17:09 +00:00
Yann Leboulanger 7d3bff5b58 update Contact instance in privateChatControl. see #4292 2008-10-12 11:20:35 +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 ed748fdda3 [thorstenp] replace list with tuple in for and if 2008-10-11 09:42:59 +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 ecce19505c prevent traceback when private message window creation fails. Fixes #4393 2008-10-09 14:27:52 +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 82c8516c0b prevent sending invalid XML chars in pm and in muc. Fixes #4354 2008-09-29 11:11:49 +00:00
Yann Leboulanger a9e64fb65f don't prevent removing contact iter in groupchat if there are pending event with an opened chat window. Fixes #4340 2008-09-27 16:14:37 +00:00
Yann Leboulanger 5da238ee54 show free for chat contacts before online contacts in roster when sorting by status. Fixes #4301 2008-09-27 14:20:44 +00:00
Yann Leboulanger 22cc993fa7 ability to sort by status in roster and in muc separatly. Fixes #3823 2008-09-26 15:22:16 +00:00
Yann Leboulanger 941b7cf974 sort group chats by status if option is checked. Fixes #3823 2008-09-23 14:39:04 +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 66f8bab7d6 show number of participants in groupchats. fixes #3418 2008-09-02 07:00:35 +00:00
Yann Leboulanger 7f1a132caa fix typo 2008-08-29 09:38:34 +00:00
Yann Leboulanger 15b9b3e1c2 show role and affiliation in groupchat correctly. fixes #3871 2008-08-29 09:35:44 +00:00
Yann Leboulanger bcc39c4e1c ask to change nickname for a groupchat only once. Fixes #4250 2008-08-29 08:06:28 +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
Yann Leboulanger 5fbea47130 warning dialogs when closing a chat window are non blocking 2008-08-08 15:19:08 +00:00
Julien Pivotto d290f1ea91 clarify my last commit [10153] 2008-08-08 09:08:42 +00:00
Julien Pivotto 72e4147591 Prevent a traceback when dragging a file over a groupchat. Fix #4142. 2008-08-08 08:59:31 +00:00
Yann Leboulanger df895d4817 nearly no blocking dialogs 2008-08-07 21:57:19 +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 4eebf0e036 fix some translated strings 2008-08-01 13:03:23 +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
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 15567aa113 fix encrypted/unencrypted notifications in PM 2008-07-14 23:46:22 +00:00
Brendan Taylor 8da186bffb fix a couple of GC and PM TBs 2008-07-07 03:51:05 +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
Brendan Taylor 17844361bb sesison-related TB fixes 2008-07-03 23:19:44 +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
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
js fcbb71a6d2 This shoudl fix tab completion in GC. For real now, I hope. 2008-05-18 19:51:58 +00:00
Julien Pivotto 3d21a3b6b0 One-to-one chat to MUC: set a beter tab name than the jid of the room. See #2095. 2008-05-17 14:00:27 +00:00
js f6e74e22b6 Same for groupchat. 2008-05-17 13:32:37 +00:00
Brendan Taylor d511b5afc4 merged in session-centric branch, with fixes for OTR compatibility 2008-05-13 01:59:10 +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 c4b2cdc31f * Add button for new chat window GUI.
* Buttons get disabled as needed now [we still need something to update
  this while the window is open (it might change, for example, the
  contact was added)].
* Remove the new accelerators in destroy_menu().
* Move some OTR stuff.
* Don't hide OTR from the user if not available, but set unsensitive.
2008-05-10 11:39:25 +00:00
js b04250cf9f Added bookmarks for *EVERY* button in chat window and GC window. 2008-05-09 09:34:38 +00:00
js dbdf6a135e Improve the last commit, popup is shown under the button now. 2008-05-07 16:36:45 +00:00
js 99a8c05bb8 * Converted GC to new GUI as well.
* Moved some code so we can get rid of a few ifs.

What still needs to be done for the GUI redesign to be complete:
Don't show entries in the actions menu that have buttons.
2008-05-07 15:34:00 +00:00
js ab1f59c433 Same for groupchat. 2008-05-05 18:43:44 +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 ec08797805 [js] fix nick completion in groupchats 2008-04-28 21:13:13 +00:00
Stephan Erb 29d2e00803 Small roster API cleanups. 2008-04-23 22:34:10 +00:00
Jean-Marie Traissard 94580b3019 Change the way last_history_time for room is saved. Save time in mem at each message logged. When closing
control, save the value in rooms_last_message_time table. Previous version could introduce duplicate logs or
messages not logged.
2008-04-21 15:48:06 +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
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
Yann Leboulanger ffbc0c65bc use a textview to change subject of a room. Fixes #3858 2008-04-18 19:15:03 +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
Jean-Marie Traissard fbc1ae9b5c fix possible TB (can be None) 2008-04-16 21:39:58 +00:00
Jean-Marie Traissard eb22930361 do a little less loops 2008-04-06 13:23:10 +00:00
Jean-Marie Traissard 06fdc8367b Auto sort bookmarked rooms list (when opening manage dialog and when adding
new one). Fixes #3739.
2008-04-06 13:14:00 +00:00
Jean-Marie Traissard 59cc0a4aa8 Correct indent 2008-04-05 12:53:01 +00:00
Jean-Marie Traissard df13948d87 Make nick cycle works with spaces in nicks, fix a possible bug if gc_refer_to_nick_char is not ",". Fixes #3810. 2008-04-05 12:48:39 +00:00
Jean-Marie Traissard c497087115 Continue to check message for HL words after we found one that could be only the beginning of another real word. 2008-04-01 19:57:27 +00:00
Jean-Marie Traissard d10e203255 Cleaner version to check if char after a highlight is an alphanum or not 2008-03-30 21:45:51 +00:00
Jean-Marie Traissard 39d18c893d Fix logic, fix char code 2008-03-30 21:16:35 +00:00
Yann Leboulanger 6de493fbb5 update GC_Contact instance when we change our nickname in a room. fixes #3784 2008-03-24 09:16:03 +00:00
Jean-Marie Traissard ccb23a9e0c Fix TB introduced in [9400] if using minimized muc 2008-03-20 20:39:51 +00:00
Jean-Marie Traissard 9e15e4bcab do not redraw_tab too much if not needed 2008-03-20 19:37:20 +00:00
Brendan Taylor c8cae71099 merged trunk 2008-02-14 02:20:07 +00:00
Yann Leboulanger 36438f44b6 fix the draw avatar calls 2008-02-05 21:24:48 +00:00
Jean-Marie Traissard 37ea4052e1 Cleaner way to check for 'show_avatars_in_roster' 2008-02-05 17:48:25 +00:00
Jean-Marie Traissard 4d675c42b1 Never load avatars for roster and gc-roster if we don't want them.
See #3718. See also [9287].
2008-02-05 17:02:05 +00:00
Brendan Taylor 0b48b05218 merged trunk into session_centric branch 2008-02-05 03:09:31 +00:00
Yann Leboulanger d85e0fdc75 prevent a GTK warning 2008-01-30 08:12:59 +00:00
Stephan Erb 67b9f1cdae We may not add ourself to roster. Make entry in occupants menu insensitive. 2008-01-28 21:22:38 +00:00
Stephan Erb 1b5b9138a4 Kill risk of double color usage when color pool is not exhausted.
Make code a bit more pythonic.
2008-01-05 22:07:53 +00:00
Stephan Erb ea5db436e1 Do not duplicate accounts with pep support in Edit->Profile menu.
Fix some strange encoding error.
2008-01-02 13:41:41 +00:00
Yann Leboulanger 2acc696716 improve look when we set avatar to the left. fixes #2102 2008-01-02 13:08:42 +00:00
Jean-Marie Traissard ddbcfcd7a2 Highlight on (nick/muc_highlight_words) that contains a space too. Fixes #3624. 2007-12-17 21:54:18 +00:00
Jean-Marie Traissard 674b4f57d5 Readd part of [8904] removed in [8938]. Then mix them. So we fix #3495/#3506 and problem when connecting
with an already used nick.
Fixes problem when we change nick with dialog to an already used one and then cancel. Fixes #3506.
2007-12-03 19:39:40 +00:00
Stephan Erb 7b563e3734 Remove tooltips when we close a groupchat window. 2007-11-29 21:43:39 +00:00
Stephan Erb 5c92566a1d Hide status/topic label when there is nothing to show.
Disable empty tooltips.
2007-11-29 20:33:10 +00:00
Stephan Erb 16e8369e23 Fix some random indentation errors and missing imports. 2007-11-27 21:14:04 +00:00
Yann Leboulanger 1f7a462788 [James Newton] osx port for Gajim. a GREAT thanks!!! 2007-11-14 19:47:52 +00:00
Yann Leboulanger bf6e25576e fix nick behaviour when we enter a room with an already used nick. 2007-11-05 21:49:42 +00:00
Yann Leboulanger c4bc44adb1 empty subject label whn there is no subject 2007-10-22 12:06:16 +00:00
Yann Leboulanger 605caae2b8 My name has changed 2007-10-22 11:33:50 +00:00
Yann Leboulanger 22c1aeda29 next release will be GPL v3. fixes #3290 2007-10-22 11:13:13 +00:00
Yann Leboulanger bbb7f5b0d4 fix unicode error in groupchat. Fixes #3480 2007-10-21 09:28:34 +00:00
Yann Leboulanger c9c066f8e6 jid when destroying room is optional 2007-10-17 15:16:26 +00:00
Yann Leboulanger 37851df6e9 prevent file rename when new nick is the same as old nick. 2007-10-15 20:16:57 +00:00
Yann Leboulanger d0649b8f81 [misc] fix change nick behaviour. fixes #3495 2007-10-13 17:47:13 +00:00
Yann Leboulanger 0869ce362c Follow nick change in private message. fixes #3455 2007-10-13 14:37:22 +00:00
Yann Leboulanger aff3697f06 use python-sexy if available to have clickable links in chat window banner. fixes #2962 2007-10-09 17:48:22 +00:00
Yann Leboulanger 10f8279e57 NonModalConfirmationDialog and ConfirmationDialognow automaticaly close window on ok or cancel. fixes #3486 2007-10-07 17:22:47 +00:00
Yann Leboulanger 0585a8475f fix ConfirmationDialogCheck callback behaviour 2007-10-01 17:11:47 +00:00
Yann Leboulanger f9a7a5c373 move accelerators tom (group)chat_control to message_window. fixes traceback with minimized groupchats 2007-09-16 09:02:04 +00:00
Yann Leboulanger 29cc2d0939 add key shortcut to open history and information window. fixes #3233 2007-09-15 10:11:46 +00:00
Yann Leboulanger 8ec061f5f6 prevent the user before sending a file to a groupchat contact that doesn't know his real jid. 2007-09-12 23:12:29 +00:00
Yann Leboulanger 0020c95c02 [Maxime Chéramy] /join room works. Gajim uses actual's MUC server. 2007-09-09 17:35:21 +00:00
Yann Leboulanger 55ba23881e don't check if there is a @ when we invite a JID. 2007-09-05 18:23:16 +00:00
Yann Leboulanger c3e40ea498 catch traceback and show error message when we try to change our nickname with not allowed chars 2007-09-04 21:46:22 +00:00
Stephan Erb 2fdeabc012 Add my copyright :-) 2007-08-31 23:19:23 +00:00
Yann Leboulanger 765b5eb2b2 /join command without argument now pre-fill join_groupchat dialog with current server and nickname 2007-08-27 12:09:07 +00:00
Yann Leboulanger c9a407ca52 [Brendan Taylor] Gsoc 2007 work : end to end encryptions. Fixes #544 2007-08-25 22:42:35 +00:00
Yann Leboulanger 78f2c8c021 [roidelapluie, elghinn, msieurhappy, xbright and me] chat to muc convertion. see #2095 and #1408. TODO: DND 2007-08-21 23:13:03 +00:00
Brendan Taylor 88e49ffa46 don't create uneccessary sessions (eg. for groupchat messages), bugfix for pms 2007-08-20 17:33:12 +00:00
Yann Leboulanger 176593db97 don't allow to bookmark a room on server that don't support private storage. 2007-08-19 15:32:41 +00:00
Stephan Erb cd4a620d94 Prevent possible traceback 2007-07-25 17:30:43 +00:00
Stephan Erb 07a3393b72 DnD of contact on a MUC window to invite 2007-07-23 21:20:33 +00:00
Stephan Erb e308b8f15a Gerneralize DND on chat windows and enable it for msg_textview. ToDo: Invite to groupchat via DND 2007-07-23 13:07:04 +00:00