Commit Graph

1587 Commits

Author SHA1 Message Date
Yann Leboulanger 8faf6d23c3 fix group renaming. Fixes #5316, see #4212 2009-10-11 21:54:40 +02:00
Yann Leboulanger ad0bb43793 [Dicson] Fix call to history manager 2009-10-08 17:51:49 +02:00
Yann Leboulanger c6dd2d6666 really check if we press control when we check for Ctrl+h or Ctrl+i in roster 2009-10-04 18:12:04 +02:00
Yann Leboulanger 616125d95e [praveen & I] ability to Ctrl+ H / I in roster to show history or information dialog of a contact. Fixes #5301 2009-10-04 11:28:20 +02:00
Benjamin Richter 7378efcb21 Improve group renaming efficiency. Fixes #4212 2009-09-26 20:23:59 +02:00
Benjamin Richter 568e1edd1e Improved handling of RTL nicknames in roster. Fixes #4293
If the number of connected resources is appended in parentheses,
the appropriate ltr or rtl mark is inserted before, so that the
writing direction at the end of the nickname matches the writing
direction of the whole displayed string as determined by
http://www.unicode.org/reports/tr9/#The_Paragraph_Level
2009-09-25 17:11:38 +02:00
Yann Leboulanger 17f17267ea call gtk.gdk.window.focus() with current timestamp rather than 0. This fixes some WM issues. 2009-09-23 17:35:42 +02:00
Yann Leboulanger 40160ecdc2 ignore when dropping file on a contact that doesn't support file transfer. Fixes #4058 2009-09-22 08:21:01 +02:00
Yann Leboulanger 6124a60b8f don't fail when we get chat / normal messages from a room_jid. Fixes #5276 2009-09-21 21:22:57 +02:00
Yann Leboulanger faf3a1fe6f add a reconnect menuitem in groupchat context menu when it's doconnected. Fixes #4004 2009-09-11 00:12:36 +02:00
Yann Leboulanger a7c3451e1d Show a confirmation dialog first time we block a contact. Fixes #3646 2009-09-11 00:01:56 +02:00
Yann Leboulanger 17e03edfd7 show confirmation dialog first time we send custom status. see #3646 2009-09-10 22:12:52 +02:00
Yann Leboulanger 8b528e512f move change_awn_icon_status from roster_window.py to gajim.py. see #3643 2009-09-09 13:51:33 +02:00
Yann Leboulanger 44e98585ed move music track listener things from roster_window.py to gajim.py. see #3643 2009-09-09 13:26:53 +02:00
Yann Leboulanger 23dbb00d2d show only once unread messages at startup when we have twice the same contact in 2 accounts. Fixes #2921 2009-08-30 22:48:45 +02:00
Yann Leboulanger da799bcb59 add ad hoc commands for zeroconf. Fixes #2819 2009-08-30 00:57:49 +02:00
Yann Leboulanger 56e5629877 always disable autoaway when we go offline. Fixes #5218 2009-08-28 15:06:35 +02:00
Yann Leboulanger abe9eb8b7d [Kanor] Fix typo. Fixes #5243 2009-08-28 13:44:03 +02:00
Yann Leboulanger 9ada82a3eb prevent GTK warning 2009-08-27 19:56:11 +02:00
Yann Leboulanger 1c7b265c9c better file transfer error handling. Fixes #5064 2009-07-28 23:13:34 +02:00
Yann Leboulanger f748e893fb prevent traceback 2009-07-24 16:17:49 +02:00
Anaël Verrier ee59f1754b * added an entry in the roster menu to display archiving preferences window
* now we check service discovery features for message archiving
2009-07-15 20:44:34 +02:00
Yann Leboulanger 5f55a54e76 don't send a new presence when we only want to change pep info 2009-07-14 16:41:25 +02:00
Yann Leboulanger 7a976135e2 fix traceback when we get bookmarks and roster is not present. 2009-07-12 15:13:17 +02:00
Yann Leboulanger 15b3ba35b1 restore metacontct correctly when we connect to server and we already have contacts in roster (stored locally). Fixes #5156 2009-07-12 13:33:29 +02:00
Yann Leboulanger 0de2e8522d ability to send contacts via DnD to another contact. Fixes #378 2009-07-07 16:28:26 +02:00
Yann Leboulanger 6440389f50 change a string 2009-06-23 22:24:11 +02:00
Yann Leboulanger 2df642a142 typo 2009-06-23 22:08:06 +02:00
Yann Leboulanger 31dd0b882c ask if we really want to uit Gajim when systray is hidden 2009-06-23 22:00:34 +02:00
Yann Leboulanger 84d1eb4bc4 don't hide roster when we want to show systray only when there are pending events. 2009-06-23 21:07:39 +02:00
Yann Leboulanger a53d373e04 don't traceback when we remove a contact that is alone in a metacontact. Fixes #4317 2009-06-23 19:52:47 +02:00
Yann Leboulanger 375b135209 re-add removed function. Fixes #5093 2009-06-16 15:14:09 +02:00
Jonathan Schleifer f7014072a7 Remove all OS X-specific code from the default branch.
OS X support is still maintained in the osx_newbuildsys branch - and
only there.
2009-06-15 21:34:38 +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 ef281d8608 roster.get_status_message don't take pep_dict anymore. 2009-05-01 10:03:38 +00:00
Yann Leboulanger 1c1d6b6c26 no pep with default status messages. 2009-05-01 09:51:48 +00:00
Yann Leboulanger 5d8e96ad47 don't call gtk.main_quit() from outside of a mainloop 2009-05-01 09:37:13 +00:00
Yann Leboulanger e6aea43665 When saving last_status_msg_*, save also pep info 2009-05-01 09:33:50 +00:00
Yann Leboulanger ad125ecaac fix missing argument. 2009-04-13 15:15:45 +00:00
Yann Leboulanger 4c754a00ea add activity / mood in change status dialog. Fixes #4419 2009-04-12 18:13:37 +00:00
Yann Leboulanger 16456b3b96 prevent traceback when we have in our roster a groupchat. Fixes #4957 2009-04-08 09:58:49 +00:00
Yann Leboulanger d3eb181758 don't expand big brother when we get a message in a metacontact. Fixes #4867 2009-04-08 07:55:52 +00:00
Yann Leboulanger 2be80422a0 [punchagan] fix rename group dialog with & char. Fixes #4937 2009-04-05 17:59:31 +00:00
Yann Leboulanger a9f233d2cd show only contact with subscription none of from in the bottom of roster. Fixes #4877, see #4778 2009-03-16 09:37:40 +00:00
Yann Leboulanger 1dbdfce11b [Dicson] don't take into account ask_on(ff)line_status when we send a custon suatus. Fixes #4828 2009-03-02 17:41:51 +00:00
Yann Leboulanger 5834a2ae82 ability to block all contacts (from privacy list editor). Fixes #4831 2009-02-20 10:15:16 +00:00
Yann Leboulanger 849108b11f request connection password only when neede. No need to request it for GSSAPI or ANONYMOUS login. see #2465 2009-02-13 20:24:23 +00:00
Yann Leboulanger 95d7e157da handle (un)subscription events as messages (don't force to popup a window) Fixes #2243 2009-02-13 19:35:30 +00:00
Yann Leboulanger 85d758d75d add jid to remove_contact dialog. Fixes #4708 2009-02-12 20:17:18 +00:00
Yann Leboulanger a1c40f9b08 unset custom status icon only when remote contact goes offline or connects. Fixes #4801 2009-02-11 20:48:41 +00:00
Yann Leboulanger 0cf86f5a8f [Dicson] Fix meta contact order by DND. Fixes #4797, #4779 2009-02-11 17:55:00 +00:00
Yann Leboulanger 37665a9a42 when sorting by status, sort by subscription first. Fixes #4778 2009-02-10 10:45:03 +00:00
Yann Leboulanger 289cd81caa [pvgoran] use correct function to get custom status message. Don't ask it if there is a default message configured. Fixes #4762 2009-02-01 21:09:48 +00:00
Yann Leboulanger 5e2c8da594 new show_only_active_contact option. Fixes #3497 2009-01-30 07:53:26 +00:00
Julien Pivotto 3a80d25bad Correctly disconnect muc's from roster. Fic #4720. 2009-01-23 14:19:38 +00:00
Yann Leboulanger d628fbef21 typo (append -> remove). Fixes #4618 2009-01-16 16:51:20 +00:00
Yann Leboulanger 6080bea672 abilty to do some exceptions to invisible rule (to send custom status). Fixes #4631 2009-01-10 16:37:57 +00:00
Yann Leboulanger bd759262bb Don't change sleeper state when we send a presence to a user, to not think global status has changed from invisible. see #4631 2009-01-09 18:34:56 +00:00
Stephan Erb a72b1ced91 Remove print statement. 2009-01-07 20:45:03 +00:00
Yann Leboulanger 12c54d9c17 remember which metacontacts were collapsed / expanded and restore their states. Fixes #4618 2009-01-06 11:13:10 +00:00
Yann Leboulanger a4132ee58b ability to use adtadir environment variable to set data directory 2009-01-05 15:12:19 +00:00
Yann Leboulanger 88ef121510 [thorstenp] fix rederer typo 2008-12-03 21:58:08 +00:00
Yann Leboulanger e389e0b16b [thorstenp] remove whitespace at eol 2008-12-03 21:56:12 +00:00
Yann Leboulanger 088378a9b7 [thorstenp] fix reimported modules 2008-12-03 21:23:04 +00:00
Yann Leboulanger 60ba33eb31 [thorstenp] fix possible undefined loop variables 2008-12-03 17:38:16 +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 36afb4e558 [thorstenp] comment useless code 2008-12-02 14:05:43 +00:00
Stephan Erb 8d0ff396b1 Do not duplicate a contact in roster on subscription changes. Fixes #4524.
For performance reasons, get_contact_iters() cannot find a contact if get_shown_groups() returns something different to what has been applied to roster model. The contact was therefore duplicated as it was believed not to be there...
2008-11-29 23:43:23 +00:00
Stephan Erb 917f6fc3a5 Prevent a group from being hidden when its renamed in roster. 2008-11-23 18:25:27 +00:00
Yann Leboulanger b00b1ce0f4 correctly decode non-ascii chars when looking in roster. Fixes #4496 2008-11-18 21:59:14 +00:00
Yann Leboulanger 8babbb1de3 revert [10593]. see #4449 2008-11-12 20:04:25 +00:00
Jean-Marie Traissard e2f562b4f8 Removed some unused imports 2008-11-11 00:02:43 +00:00
Stephan Erb 588f659d84 Small bugfix and introduce a new function in roster window.
* draw_completely: draw contact, mood, activity... of a given jid
 * For metacontacts over several accounts, not all avatars were shown correctly when the second accounts connected
2008-11-10 23:11:31 +00:00
Stephan Erb 0684ec1d3d Disable assertions. Remove a statement which is not supported by python24. 2008-11-06 08:19:24 +00:00
Yann Leboulanger 540fba2aaa prevent some disk write error and show error dialog. 2008-11-06 08:10:36 +00:00
Yann Leboulanger 47f34bcd56 finish removing lastFM support. done in #9644 2008-11-05 19:45:57 +00:00
Yann Leboulanger 67d19a226d handle mood in messages, send mood in message if pep is not supported on server. Fixes #4449 2008-11-03 14:25:08 +00:00
Yann Leboulanger 14140077ad [afflux] don't close Gajim after the first disconnect, but after all disconnects. Fixes #4409 2008-11-02 15:48:14 +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
Stephan Erb 24f8305b81 Update banshee current track when necessary. Defective by design but working. Fixes #2229 2008-10-27 22:06:58 +00:00
js 90b2d8fa8d Fix #4140. 2008-10-24 17:00:39 +00:00
Yann Leboulanger 1a8b77f1cc revert thorstenp's patch [10510] that breaks setting all contacts offline when we go offline. 2008-10-23 16:17:03 +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 c638f0c6ad [thorstenp] fix unreachable code 2008-10-20 15:24:54 +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 196dd7e30a [thorstenp] use isinstance rather than type(x) == y. use sorted() 2008-10-11 09:59:52 +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 9d7c80d522 [thorstenp] replace has_key by key in dict. Fixes #4392 2008-10-07 20:41:59 +00:00
Yann Leboulanger 5795a27162 prevent traceback in case a groupchat comes in roster. fixes #4362 2008-10-06 20:42:56 +00:00
Yann Leboulanger 87edbb8dd8 don't remove contact when there is pending events on another resource. Fixes #4350 2008-09-29 20:52:53 +00:00
Yann Leboulanger 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 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
Yann Leboulanger 330dd0e7a1 prevent traceback when removing an account. Fixes #4322 2008-09-16 07:55:33 +00:00
Yann Leboulanger e8eead4cd9 fix right click on multiple contacts from different accounts. Fixes #4312 2008-09-15 16:56:23 +00:00
Yann Leboulanger 7982dac728 correct dialog and stanza when removing a not in roster contact. Fixes #4303 2008-09-09 19:20:00 +00:00
Yann Leboulanger b2c1506d4d don't depend on python2.5 for now. Fixes #4306 2008-09-09 16:44:24 +00:00
Yann Leboulanger 93149f6936 don't delete pep when a second resource of our jid goes offline. Maybe addresses #4284? 2008-09-08 11:52:29 +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 292ac9573f [Dicson] fix string. Fixes #4280 2008-09-03 14:16:13 +00:00
Yann Leboulanger aba6fc2599 correctly remove contacts (force = True when we re-add them after) 2008-09-03 07:24:42 +00:00
Yann Leboulanger ea7a97b1df some more coding standards 2008-09-02 20:34:11 +00:00
Yann Leboulanger cf0b44d7fc coding standards 2008-09-02 20:31:05 +00:00
Yann Leboulanger a530b92290 coding standards 2008-09-02 07:13:24 +00:00
Stephan Erb 2a1d6edd68 Do not always force backend removal when performing a delayed remove operation. Some coding standards. 2008-09-01 20:25:50 +00:00
Brendan Taylor f8b620ce9a oops, rdlp already fixed it. fix my screwed up commit 2008-08-31 23:04:36 +00:00
Brendan Taylor 72c5a6c5ce fix #4275, minor grammar fix 2008-08-31 23:03:10 +00:00
Julien Pivotto 8c4eddebef Prevent a tb when trying to remove a group. Fix #4275. 2008-08-31 23:02:22 +00:00
Stephan Erb 3f61182c7a Only remove pep when a contact really signs out. 2008-08-31 12:36:40 +00:00
Stephan Erb 19866c99a9 Do not traceback when disconnecting from a minimized groupchat. Fixes #4255. 2008-08-30 19:33:13 +00:00
Julien Pivotto 269e5a31c7 hide pep-stuffs if a contact goes offline. fix #4206 2008-08-28 11:43:10 +00:00
Yann Leboulanger a2df7d22ed don't pass iters to menuitems callback, that are quickly invalid. Fixes #4034 2008-08-28 08:23:31 +00:00
Stephan Erb f55651d905 * Don't hide manage GC Bookmark menuitem when the server doesn't support private storage
* Fix indentation problem
 * Use generators instead of list comprehension (take less memory)
2008-08-25 19:35:47 +00:00
Yann Leboulanger 6f3cca4669 [Jeff Bailes] better strings 2008-08-25 10:06:22 +00:00
Nikos Kouremenos 6527c797b2 TODO -> FIXME; and a typo (aka yes you guessed it!: cosmetic) 2008-08-20 20:07:18 +00:00
Julien Pivotto de4a23e751 See #4200.
* remove js from some headers
 * set coding:utf-8 to allow real names in headers
2008-08-15 17:31:51 +00:00
Julien Pivotto b58dfd6a59 Prevent many traceback due to headers and my last commit (it's late,
sorry)
2008-08-15 03:39:27 +00:00
Julien Pivotto 8bc9bc29ae * Big headers review
* Remove some licencing problems
 * To do: same for images
 * See #4200
2008-08-15 03:20:23 +00:00
js 429fc2d1b3 Don't hardcode 'python' as our Python interpreter.
Should save OpenBSD a patch for the next alpha :).
2008-08-14 11:59:02 +00:00
Yann Leboulanger d9544baff1 send invitation to groupchat to correct resource when inviting self contact. fixes #3799 2008-08-12 09:08:47 +00:00
Yann Leboulanger a6ff8bac5e use highest prio contact when we dubble click on a contact 2008-08-12 08:07:39 +00:00
Yann Leboulanger 5fbea47130 warning dialogs when closing a chat window are non blocking 2008-08-08 15:19:08 +00:00
Yann Leboulanger e02beb9eee gpg key chooser dialog not blocker 2008-08-08 10:26:11 +00:00
Yann Leboulanger 9329bcc4c1 less and less blocking dialogs 2008-08-07 13:25:25 +00:00
Yann Leboulanger cb0049a1cb fix zeroconf 2008-08-07 11:46:07 +00:00
Yann Leboulanger d5a8f75080 make EditGroups and ChangePassword dialogs asynchronous. see #4147 2008-08-06 20:34:36 +00:00
Stephan Erb f5be05a14a Coding style 2008-08-06 20:19:16 +00:00
Yann Leboulanger ebe0f96e5c typo 2008-08-04 13:48:57 +00:00
Yann Leboulanger 1a3a795908 make ChangeStatusMessageDialog asychronous. see #4147 2008-08-04 13:34:29 +00:00
Yann Leboulanger b9fc3556c7 [avm] allow to search contact in roster by typing the middle of the name, not only the begining 2008-08-01 10:26:29 +00:00
Stephan Erb d82635a55a Some coding standards. 2008-07-31 18:23:14 +00:00
Yann Leboulanger 56598c447b don't look for a contact when we double click on an account row 2008-07-31 13:34:19 +00:00
Yann Leboulanger 0c662cf2fd use PassphraseDialog only asynchronously. see #4147 2008-07-31 06:14:48 +00:00
Yann Leboulanger bc5fa8f80e TrackMusickListener (so is PublishTune) is available only if dbus id supported. Fixes #4153 2008-07-30 16:08:38 +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
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 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
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
js 11b5ce1d04 Fix restoring of multiline status messages on reconnect. 2008-07-26 01:58:30 +00:00
js d8bd70c93b Show tunes in roster. 2008-07-25 14:11:14 +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
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
Stephan Erb 1b2e12057c Some cleanups and an attempt to fix the MUC highlight problem. 2008-07-21 21:44:40 +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 1fabaa8844 Keep last status on autoconnect. 2008-07-16 15:50:51 +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 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
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 74c53da32a fix arguments order in contacts.py, some coding standards. should fix #4081 2008-07-05 19:04:27 +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
Yann Leboulanger 26785a25f1 fix traceback when unblocking a group. fixes #4074 2008-07-02 10:57:31 +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
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
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 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
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
Stephan Erb e17cbf0da0 Remove unused function. Make remove_groupchat more solid. 2008-06-24 22:15:10 +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
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
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
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
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
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
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
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
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 03d68c0d26 Be more specific on excepts. 2008-06-08 10:19:26 +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
Mateusz Biliński e127925948 Added first version of 'Plugins' window. It's accessible through 'Edit/Plugins' item in roster menu. It seems that you can successfully (de)activate plug-ins through GUI now.
Added 'homepage' attribute to Plugin class.

Added (commented out) calls of pycallgraph in src/gajim.py for later use.

[xbright] Changed 'python' to 'python2.5' because code uses modules not available in previous versions of Python.
2008-06-07 17:28:34 +00:00
Jean-Marie Traissard 7fbfa0547d Regroup window.present() calls. See #3908. 2008-06-05 15:09:17 +00:00
Mateusz Biliński f62698e28c Added docstrings in reST format (also with todos). Commented out 'print' statements related to roster window. A few modifications to make code prettier (PyLint driven). 2008-06-02 23:15:08 +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
Yann Leboulanger e5f682a81a fix wrong syntax 2008-06-02 10:23:27 +00:00
Yann Leboulanger b3d57ed5b1 coding standards 2008-06-02 10:04:27 +00:00
Jean-Marie Traissard d927d260c2 Removing tic tac toe game. Maybe one day a full version in a plugin ? :) 2008-06-01 23:07:34 +00:00
Stephan Erb 82edfdf42e Small cleanups to roster and modelfilter.
* rename draw_roster to better express its functionality
 * remove unnecessary call of refilter()
 * directly remove groups when there is only one child left and we want to remove it

Note: in gtkTreeStore iters persist as long as the row isn't removed. Iters in Modelfilter persist as long as the model is unchanged.
2008-06-01 22:46:41 +00:00
Jean-Marie Traissard c6aa116db8 try another way do redraw roster. See #3955. 2008-06-01 22:23:16 +00:00
Stephan Erb 794a5f33d5 Use correct modelfilter API to expand to selected contacts. 2008-05-31 15:31:49 +00:00
Stephan Erb e2c3555e6f A few expand/collapse related changes.
* always adjust account toggle state
 * try to eliminate extra adjustmants to group state
 * small function renaming
2008-05-30 23:09:13 +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 ac8faf47ca Fix eventhandling for non chat message events.
Evens were not properly removed.
2008-05-30 20:56:54 +00:00
Stephan Erb 6fd860a1b3 Remove debug print. 2008-05-30 20:21:12 +00:00
Stephan Erb 7259f95b0b Fix drag and drop within the same group. 2008-05-30 20:16:00 +00:00
Stephan Erb 0e519bce9e Do not recalibrate metacontacts if there is only one brother (the big brother). 2008-05-30 20:07:14 +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 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
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
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 75ad801f62 Fix music_track_info for multiple accounts. 2008-05-16 16:04:51 +00:00
js 96a5b497a8 * Remove old code to update status to current track.
* Don't bind the track listener when not enabled anymore.
* Remove the signal / add the signal when changed in preferences.
2008-05-15 19:52:04 +00:00
js 129c115837 PEP creates less traffic now and MPRIS is now more tolerant. 2008-05-15 17:42:32 +00:00
Yann Leboulanger 35aefc2df8 indentation is with tabs 2008-05-13 14:03:30 +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 91211e189d Fix DnD FT on Windows:
* Fix helpers.py so URL is decoded correctly.
* Fix code in roster_window.py so the \0 that's alway the last file
  on win32 is ignored.

This also fixes and closes #2398.
2008-05-10 23:21:28 +00:00
js 4eeb96368b Store otr_userstates at the right place and create it the right way.
This fixes the crash when creating a new account, which made Gajim
unusable on systems where it never ran before.
2008-05-10 21:29:47 +00:00
js 435042968e Added OTR support.
Work done by Kjell Braden <fnord@pentabarf.de>.
Some fixes done by me.
2008-05-09 12:35:25 +00:00
Stephan Erb 115006fa14 Fix add_transport function. TODO: Use it.... xD 2008-05-08 22:15:56 +00:00
Stephan Erb 56da8d7cfb Some random roster cleanups:
* remove unused code
 * use self.model directly when obvious
 * cleanup some FIXME comments
2008-05-08 22:09:43 +00:00
Stephan Erb 708e48a2a7 Do not redefine built-in 'iter'. Follow recommendation and use 'titer' instead. 2008-05-08 21:53:26 +00:00
Stephan Erb bbb07caa0a Coding standards. 2008-05-08 21:18:39 +00:00
Stephan Erb 5b5412621e Fix assertion message. 2008-05-07 18:07:31 +00:00
Stephan Erb 09b3af3367 Allow to have several SelfContact jids in merged accounts mode. Previously only one was shown. 2008-05-07 17:42:42 +00:00
Stephan Erb d6b95daa8b Add transports to roster only once. Fixes #3911, #3923. 2008-05-06 22:25:27 +00:00
Stephan Erb 1e68eb3de9 Sync groups of metacontacts to fix a potential bug. Contact iters of brothers might not be found, though they are in roster. 2008-05-06 17:43:03 +00:00
Stephan Erb b1a2951634 Make "invite to" menuitem sensitive when possible. Regression introduced in r9524. 2008-05-06 16:46:33 +00:00
Brendan Taylor d15b9dea6e reuse existing chat sessions and controls 2008-05-03 16:52: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
Jean-Marie Traissard cb9d2a3ca0 Revert "when removing last metacontact little brother, remove meta tag for big brother" from [9553],
that breaks meta over multiple accounts. Thanks steve-e
2008-05-01 18:24:31 +00:00
Jean-Marie Traissard 7144520bc0 Fix edit group problems :
-redraw group expand state
-when removing last metacontact little brother, remove meta tag for big brother. Else that confuse when
moving via edit group.

Note that edit group is broken by http://trac.gajim.org/changeset/9551
2008-05-01 14:27:53 +00:00
Stephan Erb 79f4d22fa4 Fix inconsisten indentation. 2008-05-01 08:40:20 +00:00
Stephan Erb df5a4c2281 Reimplement _get_contact_iter to be faster in bigger rosters. 2008-05-01 08:38:08 +00:00
Jean-Marie Traissard 299f560749 This is needed finally, reverting from previous changeset 2008-05-01 02:32:57 +00:00
Jean-Marie Traissard 6c8d196383 [modelfilter]
-fix row not expanded when contact connected in group with no one online yet
-fix WHEN filter is done when contact disconnect/connect
-fix number of connected contacts not showed for new groups
-fix General created when moving a contact to another group
2008-05-01 02:13:00 +00:00
Brendan Taylor d4a766963f multiple chat session windows per contact. groupchat and pms broken. 2008-04-30 02:55:13 +00:00
Jean-Marie Traissard 60bb033a90 Cleaner way to check for account line expand state. Fixes #3884. 2008-04-30 00:51:36 +00:00
Jean-Marie Traissard 6b465a4218 Some little on_model_row_has_child_toggled() speedups 2008-04-30 00:28:34 +00:00
Jean-Marie Traissard d555954ee5 [modelfilter]
-restore call to _adjust_group_expand_collapse_state() even if not filtering in
on_model_row_has_child_toggled(). Is used.
-restore "# Draw the contact and its groups contact" removed in last changeset but
-change way to toogle self.starting so it works when add_account_contacts() is called from gajim.py too. One
useless call to draw_account() added, maybe.
-If showingOfflines, all contacts are visible, set visibility True FAST
2008-04-29 23:50:44 +00:00
Jean-Marie Traissard cc97c3ce7b [modelfilter]
-Always use self.modelfilter instead of self.tree.get_model()
-filter twice to show groups with no contacts inside in the correct expand state when showingOfflines. ( We
can't expand the group before we filter, and we need to filter to effectively show tree expand state in model )
-UNSURE : call _adjust_group_expand_collapse_state() only if filtering in on_model_row_has_child_toggled(). That
seems sufficient and when not filtering, it works better with :
-when contact change status, don't refilter, only adjust group row state. Steve-e, do we need to filter in a
case I don't see ?
-in visible_func : Don't initialize 'accounts' var if not needed
-Don't draw anything in add_contact(), that seems to be done somewhere else anyway
2008-04-29 22:07:59 +00:00
Jean-Marie Traissard ab8d2f6320 Add missing call to adjust_group_expand_collapse_state() 2008-04-28 22:49:19 +00:00
Jean-Marie Traissard 2056ee8886 [steve-e only]modelfilter fixes about group and account collapse
little bug, fix follow
2008-04-28 22:46:49 +00:00
Yann Leboulanger a9e25aa98a fix arguments of on_open_chat_window functions. It is called from callbacks, so first argument is widget. 2008-04-26 23:36:03 +00:00
Stephan Erb 8929f4e630 Fixing a few modelfilter bugs.
* Show all groups in merged accounts view that have online contacts. Fixes #3890
 * Allow metacontacts over several accounts. Fixes #3889
 * Fix on_drop_in_group when two accounts in merged view have the same contact
 * Fix potential traceback when receiving a message
2008-04-26 10:18:33 +00:00
Yann Leboulanger 6990b23bcc fix groupchat addition to roster 2008-04-24 07:52:11 +00:00
Stephan Erb 75e44510a1 Add parameter checks to public API. Remove boiler code. 2008-04-23 22:52:22 +00:00
Stephan Erb 29d2e00803 Small roster API cleanups. 2008-04-23 22:34:10 +00:00
Stephan Erb 465aab8200 Fix Modelfilter regression: disconnecting a minimized groupchat was broken. 2008-04-21 22:34:32 +00:00
Stephan Erb fb12c17fb9 In obvious cased, don't compare boolean values to True or False. 2008-04-21 20:52:35 +00:00
Stephan Erb f877fbea13 http://python.org/dev/peps/pep-0008/ " Comparisons to singletons like None should always be done with
'is' or 'is not', never the equality operators."


Apply do roster_window. See r9488.
2008-04-21 20:23:03 +00:00
Stephan Erb e504cee6fb Revert r9519. It was breaking DND. 2008-04-21 20:07:08 +00:00
Stephan Erb 7d8f72d663 Show correct color of status_messages in roster in more cases.
This is only a simple port of the old non-modelfilter method. Functionality not restored yet: Custom colors are lost when refiltering the model.
2008-04-21 19:57:48 +00:00
Stephan Erb b56c0c94af Connect drag'n'drop signals in glade. 2008-04-21 19:02:24 +00:00
Stephan Erb dc266592b7 Remove unused variables. 2008-04-21 18:52:15 +00:00
Jean-Marie Traissard 2c891b5b87 Translatable (desync'ed) 2008-04-20 20:06:16 +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
Jean-Marie Traissard 0374e72b28 Use one function to join bookmarks automatically only. Fix bug "all bookmarks joined minimized when going back
from invisible". Not sure it's right place for this function.
2008-04-19 23:39:09 +00:00
Yann Leboulanger 5dd0d4fce8 move functions that build icons to gtkgui_helpers instead of roster_window. Fixes #3873 2008-04-17 14:17:14 +00:00
Yann Leboulanger 278d63ca35 indentation 2008-04-17 06:55:12 +00:00
Yann Leboulanger 2d04fc6ae6 don't hide roster on startup if no systray module is available 2008-04-17 06:34:32 +00:00
Yann Leboulanger b936fa4bfe coding standards 2008-04-15 22:51:41 +00:00
Brendan Taylor b170e77cdb functioning tic-tac-toe :D 2008-04-11 03:52:45 +00:00
Yann Leboulanger db59de9397 fix argument in a menu.popup() call 2008-04-07 12:58:34 +00:00
Stephan Erb bea91baeaa Remove useless group redrawing. Remove unused variable. 2008-04-04 09:44:47 +00:00
Stephan Erb 611a53422e A few small PEP GUI and code changes. No new functionality. 2008-04-03 22:50:03 +00:00
Yann Leboulanger f3665cd689 don't remove metacontact when we reconnect. fixes #3771 2008-04-01 23:13:10 +00:00
Jean-Marie Traissard a0d8aea90b chat_control : fix possible var name confusion
roster : Fix resource problem, gajim.contacts.get_contact() can return first contact instead of specified resource. Fixes #3789.
2008-03-23 17:44:47 +00:00
Yann Leboulanger 5b55264c92 fix call to correct function when inviting to room in roster 2008-03-21 12:46:54 +00:00
Yann Leboulanger 1008d162f4 show invitation from anonymous room in roster from a groupchat rather than from a normal Contact. fixes #3448 2008-03-21 12:30:23 +00:00
Jean-Marie Traissard ff32d0ccb3 roster.on_quit_request() cleanups :
-Check if there are pending events and send offline even if we don't ask a status message (was a indentation
mistake I think)
- Really make unread and recent working according to 'notify_on_all_muc_messages' value
- be faster, hopefully
2008-03-20 20:26:58 +00:00
Jean-Marie Traissard d7a6734601 Clarify how roster.quit_on_next_offline works with comments.
Use only one function when user wants to quit. Bad dup code !
Maybe see #3643.
2008-03-20 16:31:21 +00:00
Jean-Marie Traissard e07ce48240 Restore single click behaviour. Function was called 2 times by mistake. 2008-03-19 23:53:40 +00:00
Jean-Marie Traissard f9ca40ff1b - Change the way roster.fire_up_unread_messages_events()/logger.get_unread_msgs() work, so it's
faster
- Stop adding pm chat messages received to unread messages. This is in addition to [8311], but
works also when chat win is already opened now.
- Automatically remove unread_message lines for messages older than a month, so we will clear this
table for everybody, and keep it quite clear. Specially because messages can still be blocked here
if it's from someone not in the roster and we don't open it during the session. This can be long
at first connection with this version, because we delete a lot of lines (nearly one per PMs you
received since a long time). Could also be a very little longer during one month.
2008-03-19 21:43:01 +00:00
Jean-Marie Traissard 7dca69467e Stop loading all transport iconsets at launch. Load them on the fly, if and when needed. Speedup gajim start and
use less mem :)
2008-03-19 00:25:28 +00:00
Yann Leboulanger d26080a3dd missing space in a string 2008-03-10 21:41:21 +00:00
Yann Leboulanger 3f98f9c53b prevent traceback when there is a row in roster without an associated Contact instance. see #3718 2008-03-10 15:41:06 +00:00
Yann Leboulanger 244d222b82 remove blocked transport from roster when we go offline. see #3718 2008-03-10 15:38:21 +00:00
Yann Leboulanger 866d3c27ca don't hide roster when we press Escape if a chat is opened. Fixes #3751 2008-03-10 15:11:57 +00:00
Yann Leboulanger 545eb1ec33 Don't fully clean contact list on reconnect. Fixes #3733 2008-03-10 11:20:22 +00:00
Yann Leboulanger cdb31a2b55 remove use_pep option, always PEP it to send played song. fixes #3053 2008-03-03 22:42:04 +00:00
Yann Leboulanger 10af723f81 move configuration of pubsub menuitem to account context menu 2008-02-29 22:23:39 +00:00
Yann Leboulanger aa3c02efcd search lowercase in roster. see #3749 2008-02-27 10:18:56 +00:00
Yann Leboulanger cb51401903 [shivan] don't trat emoticons created with parenthesis arround status message. fixes #3368 2008-02-26 08:31:48 +00:00
Yann Leboulanger 7c49600135 use timeout_add_seconds instead of timeout_add (when it's available), more efficient. fixes #3734, #3736 2008-02-14 19:18:07 +00:00
Brendan Taylor c8cae71099 merged trunk 2008-02-14 02:20:07 +00:00
Jean-Marie Traissard 894e752292 Sadly, timeout_add_seconds is only availaible since gtk 2.14. It's quite recent. I have 2.10.
Reverting [9324]. Reopen #3734.
2008-02-13 18:03:29 +00:00
Yann Leboulanger ad3935d9e9 [Goedson] use timeout_add_seconds instead of timeout_add, more efficient. fixes #3734 2008-02-13 07:14:06 +00:00
Brendan Taylor 381ba838b9 post-refactor traceback fixing 2008-02-06 05:24:07 +00:00
Brendan Taylor 0b574d2360 move message handling into ChatControlSession 2008-02-06 01:40:51 +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 24d6f11bab fix wrong commit. see #3718 2008-02-03 21:22:30 +00:00
Yann Leboulanger 167aff1fdb don't remove / readd timeout, just lt it run. It's a bit faster. see #3718 2008-02-03 21:19:24 +00:00
Yann Leboulanger 4d55bbf842 re-draw groups and accounts after 0.5s so to not call them too often. see #3718 2008-02-03 21:00:27 +00:00
Yann Leboulanger dc12930253 [sgala] nicer code. No need to change contact's status to offline when we go offline if contact is already offline. see #3718 2008-02-03 19:31:01 +00:00
Jean-Marie Traissard 7448dab437 Do not load avatar in roster if we don't want to show it there 2008-02-02 15:19:12 +00:00
Yann Leboulanger 7e88b7608a fix roster sorting whith user that just became offline and are still in roster. Fixes #3531 2008-01-31 20:39:03 +00:00
Yann Leboulanger 6951442efb re-compute big brother when a contact of a metacontact goes offline. fixes #3464 2008-01-30 10:46:12 +00:00
Yann Leboulanger d7dd4c6396 send custom presence to self contact with the resource. fixes #3359 2008-01-24 21:14:11 +00:00
Stephan Erb 4bb29675a8 padlock icon in merged accounts mode: show when all connected accounts are connected securely, don't show it when one is not secured, do no care about offline accounts. 2008-01-23 16:10:28 +00:00
Jean-Marie Traissard 39fe7fc4c0 Remove saveposition. Now we always save and restore positions and sizes. See #3638. steve-e, this bug
is still opened for what you told ;)
2008-01-22 21:08:24 +00:00
Yann Leboulanger b3bafa75ff never move a window outside the screen. fixes #3501 2008-01-22 17:47:56 +00:00
Yann Leboulanger 12fc03ecdc define a search function that escapes text as it's escaped in treemodel. fixes #3668 2008-01-17 22:48:34 +00:00
Yann Leboulanger 0bfe53c158 refactor invite to submenu code and add it to group context menu. fixes #3658 2008-01-04 19:31:07 +00:00
Yann Leboulanger 77804ee7aa typo in [9231] fixes #3656 2008-01-04 19:29:27 +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
Yann Leboulanger 9a7dafa802 add advanced option to position avatar in the roster left or right. fixes #2102 2008-01-01 23:51:28 +00:00
Yann Leboulanger 2ced6413f0 some space in some comments 2008-01-01 04:58:51 +00:00
Stephan Erb 6fdd7c0f88 Rework GPG behaviour:
Only encrypt when the receiver is trusted. You have to sign its key or it has to be signed by someone you trust. Fixes #109

Make checkbox insensitive when GPG is disabled on an account (or no passphrase given).

Auto assign trusted keys on received presence. Deny encryption on missmatch of assigned key and signing key. Fixes #3376

Do not disable encrypted when receiving an unencrypted message. Print whether a received message was encrypted or not.

TODO: Remove togglebutton, its useless now
2007-12-29 23:28:27 +00:00
Yann Leboulanger f6ceb19876 ability to block / unblock a transport. Remove log on / log off (it's the same as send_custom_status) 2007-12-28 23:37:06 +00:00
Yann Leboulanger a03009d1e2 coding standards, empty line don't need tabs, no space at the end of lines 2007-12-28 10:23:41 +00:00
Jean-Marie Traissard 14bf5ed62c pyflakes checks, remove unused imports, mainly 2007-12-27 21:52:45 +00:00
Stephan Erb a707eaa050 Honor coding standards 2007-12-27 17:21:04 +00:00
Stephan Erb a67683919a Variable referenced before assignment 2007-12-27 10:59:29 +00:00
Travis Shirk 1a7b1672a7 Use show_all on the notebook and not the window when a new tab is added.
For example, if the roster is hidden in single UI mode and a new chat arrived the roster would unhide.
2007-12-20 03:11:44 +00:00
Travis Shirk 0afc7b2328 Merge one_window branch
Merged revisions 9143,9145-9155,9157-9162,9164-9169,9171-9177 via svnmerge from
svn://88.191.11.156/gajim/branches/one_window

........
  r9145 | nicfit | 2007-12-13 21:49:09 -0700 (Thu, 13 Dec 2007) | 2 lines

  Implemented the original Nikos patch with an HPaned instead of a HBox and only do this mode when one_message_window == 'always'
........
  r9152 | nicfit | 2007-12-15 13:33:56 -0700 (Sat, 15 Dec 2007) | 2 lines

  Added config and GUI for one_message_window_with_roster
........
  r9153 | nicfit | 2007-12-15 13:41:46 -0700 (Sat, 15 Dec 2007) | 2 lines

  Use one_message_window_with_roster and some whitespace cleanup
........
  r9154 | nicfit | 2007-12-15 14:04:49 -0700 (Sat, 15 Dec 2007) | 2 lines

  Scratch the chckbox for with roster mode, use one_message_window opt and combo
........
  r9155 | nicfit | 2007-12-15 17:01:13 -0700 (Sat, 15 Dec 2007) | 2 lines

  MessageWindowMgr knows about ONE_MESSAGE_WINDOW_ALWAYS_WITH_ROSTER and MessageWindow can reparent itself rather then the roster having to do so.
........
  r9157 | nicfit | 2007-12-15 17:47:20 -0700 (Sat, 15 Dec 2007) | 2 lines

  Resizing fixes and make the roster window shrink when last tab is removed
........
  r9158 | nicfit | 2007-12-15 19:15:11 -0700 (Sat, 15 Dec 2007) | 2 lines

  Added "Show roster" (CTRL+R) to view menu when using always_with_roster to quickly hide/show the roster.
........
  r9159 | nicfit | 2007-12-15 19:49:30 -0700 (Sat, 15 Dec 2007) | 2 lines

  Handle window title setting in always_with_roster mode.
........
  r9160 | nicfit | 2007-12-15 20:13:57 -0700 (Sat, 15 Dec 2007) | 2 lines

  Removed FIXME
........
  r9167 | nicfit | 2007-12-17 18:40:59 -0700 (Mon, 17 Dec 2007) | 2 lines

  When roster is hidden, show it when the number of MessageWindow controls == 0
........
  r9168 | nicfit | 2007-12-17 19:07:49 -0700 (Mon, 17 Dec 2007) | 2 lines

  Disable hiding roster when there are no message controls open
........
  r9169 | nicfit | 2007-12-17 20:41:11 -0700 (Mon, 17 Dec 2007) | 2 lines

  Bunch of saved size bugs fixed
........
2007-12-18 23:42:22 +00:00
Yann Leboulanger 19761f081f [js & I] show pep info in account tooltip, fix a bug in create_contact() 2007-12-13 20:26:13 +00:00
Yann Leboulanger 192669b64e publish tune for every connected accounts if we use pep 2007-12-13 19:14:41 +00:00
Yann Leboulanger 228f7597c0 fix rhythmbox track change. no need to liste to playingUriChanged event 2007-12-12 22:18:01 +00:00
Yann Leboulanger d65cba8493 don't send user tune if account is disconnected 2007-12-12 19:54:48 +00:00
Yann Leboulanger e5b2db0099 hide pep menuitems when use_pep is not activated 2007-12-12 18:54:08 +00:00
Yann Leboulanger a645006bf8 merge diff from trunk 2007-12-12 08:44:46 +00:00
Yann Leboulanger f3f622769c [Florob] add album to tune pep message. see #3053 2007-12-04 10:20:52 +00:00
Stephan Erb 16e8369e23 Fix some random indentation errors and missing imports. 2007-11-27 21:14:04 +00:00
Yann Leboulanger a332543d68 make assign GPP key unsensitive when GPG is not enabled 2007-11-26 19:17:14 +00:00
Yann Leboulanger 04e92485fc [shtrom] fix var names when sending song in status message. fixes #3558 2007-11-22 12:58:39 +00:00
Yann Leboulanger 0ceb41f650 request GPG password only when connected to server, before sending presence. fixes #3483, #3375, #3115 2007-11-22 10:41:57 +00:00