Commit Graph

87 Commits

Author SHA1 Message Date
Stephan Erb 96b9326b0f Move function closer to where it is used.
This makes it easier to reason about its usage.
2009-11-22 22:14:05 +01:00
Stephan Erb 07c008cbaa Remove TODO which was more or less a "might be useful one day" 2009-11-22 22:10:55 +01:00
Stephan Erb a53e906a92 Ignore error <message /> stanzas with event tag.
This prevents dialogs poping up with showing "Service unavailable".
2009-11-22 22:07:48 +01:00
Stephan Erb d6e6a5d62d Do not try to send (and fail) sending PEP via Zeroconf. Fixes #5432. 2009-11-17 23:17:08 +01:00
Stephan Erb 10428555aa Various pep-related cleanups.
Most important change is that pep send/retract functions no reside on the ConnectionPEP object.
2009-11-16 19:31:17 +01:00
Stephan Erb a3ea00f4ea Remove different dicts for tune, activity and mood and from now on only use the common 'pep' dict.
The pep dict contacts the different UserPEP classes.
2009-11-15 23:52:43 +01: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 28161dc33c Apply coding standards. 2009-11-15 22:59:43 +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 6c0fb26e58 Use central event_handler in Interface() instead of updating the GUI directly from XMPP callbacks. 2009-11-15 11:11:51 +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 234a6520dd Removed unused code. 2009-11-15 00:15: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
Stephan Erb 088916f4e7 Strip PEP info at the network level.
(Currently it is done at the UI level in many, many different places)
2009-11-14 23:07:22 +01:00
Stephan Erb 3d5e8cc427 Move common pep constructor logic to base class. 2009-11-14 22:47:21 +01:00
Stephan Erb 99e718583a Initial simplification of PEP data extraction by moving the extraction methods to the newly created PEP classess.
If-else-retract complexity is substituted by dictionaries.
2009-11-14 22:31:27 +01:00
Stephan Erb 7c6dc424af Make user_tune a instance method, not a function. 2009-11-14 20:54:42 +01:00
Stephan Erb 85b7b89b49 Create a class for each PEP XEP that we support. Dispatch an event to the Interface() handlers when we have have received a PEP event. 2009-11-14 20:48:33 +01:00
Stephan Erb 30580702d5 Create a ConnectionPEP class and directly register its callback to handle pep events. 2009-11-14 19:56:15 +01:00
Yann Leboulanger 4c754a00ea add activity / mood in change status dialog. Fixes #4419 2009-04-12 18:13:37 +00:00
Yann Leboulanger c163e90b10 [thorstenp] fix unused variables 2008-12-02 15:53:23 +00:00
Yann Leboulanger 961e4426ff coding standards 2008-11-28 07:25:31 +00:00
Yann Leboulanger fbd1127930 send empty tune when we disconnect an account. Fixes #4512 2008-11-26 22:44:17 +00:00
Yann Leboulanger 8babbb1de3 revert [10593]. see #4449 2008-11-12 20:04:25 +00:00
js 254dcd2f1c Added new activities. 2008-11-08 22:26:05 +00:00
Yann Leboulanger 3f88abaf27 fix tb when we receive pep info from a room. Fixes #4449 2008-11-03 16:36:15 +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
js 2e24b393c3 D'oh! 2008-10-30 21:49:49 +00:00
js e3b2ee4ea6 Updated moods to version 1.2 of the XEP. 2008-10-30 19:01:26 +00:00
js 9519d1bd6a A subactivity of other means we have no subactivity. 2008-10-24 17:10:30 +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 9d7c80d522 [thorstenp] replace has_key by key in dict. Fixes #4392 2008-10-07 20:41:59 +00:00
Julien Pivotto 59b8506cf2 remove unsed tupples 2008-08-31 14:14:00 +00:00
Julien Pivotto 45122a3381 beter way to delete PEP when a user goes oflline 2008-08-28 22:43:28 +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 6f3cca4669 [Jeff Bailes] better strings 2008-08-25 10:06:22 +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
js 5638c568e6 Fix a typo. 2008-08-09 16:40:48 +00:00
Yann Leboulanger d6f20965a9 update correctly self contact when we get PEP info. fixes #4145 2008-08-04 22:44:48 +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 993d0d8609 Revert r10064 and to it the right way™. 2008-07-29 19:42:31 +00:00
js a226760275 Make moods better translatable. 2008-07-29 19:02:57 +00:00
Yann Leboulanger 4ebee785ff don't require python2.5 2008-07-29 07:11:39 +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
js c06c258b2f Show activity in conversation window. 2008-07-28 22:33:20 +00:00