Commit Graph

8606 Commits

Author SHA1 Message Date
Yann Leboulanger 406e142b25 prevent bug when merging metacontacts 2009-12-29 16:02:50 +01:00
Yrogirg f9dbe1b4d6 Ability to copy LaTeX expressions. Fixes #5451 2009-12-29 00:01:55 +01:00
Yann Leboulanger 1f69b98cac re-enable LATEX usage. 2009-12-29 00:01:10 +01:00
Yann Leboulanger dd35f9b58a don't allow to disable a connecting account. Fixes #5522 2009-12-28 23:36:15 +01:00
Yann Leboulanger 1de511c0fd fix indentation typo 2009-12-28 23:23:04 +01:00
mariolenz 05a86e8357 harmonize indentation. Fixes #5518 2009-12-28 23:04:23 +01:00
Yann Leboulanger e6b4382aaf apply config to minimized controls too. Fixes #5515 2009-12-28 22:41:05 +01:00
Stephan Erb 85a35a21ac Correctly fake NullClientCaps: Assume we support everything instead of the blacklisted features. 2009-12-28 21:29:51 +01:00
Stephan Erb da0749b5d9 Make NullClientCaps a singleto so that we don't create a new object for each contact. 2009-12-28 20:58:34 +01:00
Stephan Erb 65ba840cbd Slightly faster version of get_contact_iter and get_role_iter. 2009-12-28 20:14:15 +01:00
Stephan Erb a8e3dc771e Extract a few methods to make some code a tiny bit easier to understand and read. 2009-12-28 16:32:58 +01:00
Stephan Erb b0b555c630 Add missing Vim config line to gui_interface.py 2009-12-28 13:27:05 +01:00
Stephan Erb 5cb3c74da9 Only perform the longish check for latex support if the user has enabled latex in ACE. 2009-12-27 17:50:06 +01:00
Stephan Erb cc9390c063 Remove unused import. 2009-12-27 17:40:10 +01:00
Stephan Erb d00a5f737c Create index on the logs table on time instead of on kind.
That way we can search through all logs in constant time instead of having to perform a full table scan.
2009-12-27 16:50:43 +01:00
Stephan Erb 54ad65c744 Show warning if calculated and received caps hash are different. 2009-12-27 16:23:31 +01:00
Alexander Cherniuk 306519f6e9 Added /status, /away, /online commands. Fixed command error reporting 2009-12-22 21:31:11 +02:00
Stephan Erb 11c83109f4 Remove some unneeded bits in the xmpp ping code. Add additional logging. 2009-12-20 23:16:58 +01:00
Thibaut GIRKA dea4cdc073 Import xmpp in jingle_content, so that JingleContent.__content can work. fixes #5524 2009-12-20 13:37:56 +01:00
Thibaut GIRKA d5e3c6a935 Remove duplicated code... 2009-12-19 22:24:15 +01:00
Thibaut GIRKA a4c122e74a Handle jingle-incoming events in roster too 2009-12-19 22:17:56 +01:00
Alexander Cherniuk d7cefc1e43 Removed trailing space 2009-12-19 13:49:10 +02:00
Yann Leboulanger 4b9e7f19a5 add missing import to common/protocol/bytestream.py. Fixes #5520 2009-12-19 10:26:03 +01:00
Yann Leboulanger 8d8db58003 ignore invalid SRV reply from libasyncns. Fixes #5507 2009-12-18 17:27:09 +01:00
Yann Leboulanger 5ec5886c57 prevent having twice the same group for a contact. Fixes #5504 2009-12-15 19:04:35 +01:00
Yann Leboulanger b82ea5feff restore xmpp ping callback that was removed in [bc039f78321d] Fixes #5510 2009-12-14 23:39:46 +01:00
Yann Leboulanger 15408e8e86 remove some useless tab at the end of lines 2009-12-14 21:05:14 +01:00
Yann Leboulanger 2eb8391e81 [guillaume] add user-agent when downloading a remote image. Fixes #5513 2009-12-14 18:09:25 +01:00
Yann Leboulanger 4b07509d5e [Dave Cridland] try to encode username, realm and password in iso-8859-1 when doing DIGEST-MD5 before computing the hash. Fixes #5512 2009-12-14 17:47:14 +01:00
Yann Leboulanger 9072ff18c1 [Dave Cridland] implement EXTERNAL auth method. See #5512 2009-12-14 17:39:32 +01:00
Yann Leboulanger ecf964677d hide() roster instead of iconify() it when clicking on systray. Fixes #5505 2009-12-14 17:18:38 +01:00
Stephan Erb 1f954582fb [Florob] Fix logic error resulting in a None type exception. 2009-12-13 22:55:57 +01:00
Stephan Erb a48087aae7 Don't traceback when receiving entity capabilties. Fixes #5492
This is a workaround until the whole update_contact method is gone. It should not be needed.
2009-12-13 00:55:04 +01:00
Stephan Erb df7e278ed1 Merge 2009-12-11 01:13:45 +01:00
Stephan Erb 27c101eb55 Add protocol folder to Makefile. 2009-12-11 01:11:39 +01:00
Stephan Erb b7aa05a684 Merge local changes (not again...) 2009-12-11 01:01:17 +01:00
Stephan Erb 9eb35dcf18 Split send_socks5_info monster method into smaller methods. (Extract Method Refactoring)
(I don't think what we have here is good, but it is atleast readable)
2009-12-11 01:00:29 +01:00
Stephan Erb 24f44d8bdd Remove zeroconf dummy methods. 2009-12-10 23:54:51 +01:00
Stephan Erb 9bfb5753c2 Move three methods from filetransfer_window to protocol/bytestream.
One of the methods was duplicated. Additionally, apply a very few coding standards.
2009-12-10 23:53:39 +01:00
Stephan Erb 24e2047fe3 Remove obvious code duplication. 2009-12-10 23:22:51 +01:00
Stephan Erb bb50871bce Remove logging of callback method calls. Such cross-cutting concerns are better directly implemented in the xmpp dispatcher. 2009-12-10 23:01:48 +01:00
Stephan Erb f846d51f07 Follow the most basic coding standards. 2009-12-10 22:09:37 +01:00
Thibaut GIRKA b82f829b10 Import socket in jingle_rtp, fixes typo in 'stun_server', connect changed signal of stun_server_entry Fixes #5502 2009-12-10 22:02:03 +01:00
Stephan Erb d48202d221 Move ConnectionBytestream to common/protocols. 2009-12-10 21:52:32 +01:00
Stephan Erb f52532f6f0 Merge local changes. 2009-12-10 20:08:09 +01:00
Stephan Erb e9caf06992 Split common/caps.py. We now have common/protocol/ to contain XMPP connection related classes.
Plan is to move our ConnectionX classess to the protocol package one by one. Each move should be more than a simple copy paste. It should be preceeded by cleanups and the like.
2009-12-10 20:06:46 +01:00
Stephan Erb 7708e3b87e Refactor internas of ConnectionCaps
* Make it testable and write a very basic test for the presenceCallback
 * Use Extract Method to make the code more readable and to increase reusability
 * Start to decouple ConnectionCaps from the other Connection classes/handlers
2009-12-10 18:31:00 +01:00
Yann Leboulanger 88a149035b [Jim++] keep in mem las muc message time, and save it in database when we quit. Fixes #5490 2009-12-10 06:59:47 +01:00
Yann Leboulanger ae3a0b6db6 [dm] prevent traceback when pressing DEL on the merged account row. Fixes #5498 2009-12-08 17:43:13 +01:00
Yann Leboulanger 6b7f36ebd1 prevent traceback when geoclue not installed. Fixes #5495 2009-12-08 14:45:58 +01:00
Yann Leboulanger 408a2adffc correctly reset localisation data, set altitude, timestamp and accuracy correctly 2009-12-08 00:04:04 +01:00
Yann Leboulanger 7c2cb2dd93 fix typo in finction name and correctly retract location data 2009-12-07 23:50:29 +01:00
Yann Leboulanger 5e2f1cf770 fix typo in finction name and correctly retract location data 2009-12-07 23:45:37 +01:00
Yann Leboulanger 108aaa0027 move enable_location_listener to location_listener.py directly 2009-12-07 23:40:28 +01:00
Yann Leboulanger 869ad9ec2b a bit of refactorization 2009-12-07 23:30:12 +01:00
Yann Leboulanger 2a944e5404 ability to get address / location from geoclue and send it via PEP 2009-12-07 23:16:30 +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 7b58e145af fix variable name. Fixes #5492 2009-12-07 19:22:03 +01:00
Yann Leboulanger 99d406c8bf add some missing argument when adding a new row due to new geolocation column. Fixes #5491 2009-12-07 18:50:32 +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 bbd4b16d9c set hg version higher than 0.13.1. Fixes #5488 2009-12-06 11:45:05 +01:00
Stephan Erb 228678d6e8 Do not add the resource when morphing a GC_Contact to a normal Contact.
gc_contact.jid and gc_contact.resource are empty in anonymous rooms. In non-anonymous rooms those contain the real jid and resource of the contact.
We must not mix those information with the jid of the contact in the groupchat: We assumed that "test@conference.gajim.org/nick" was the Jid and 'someresource' the resource. So we tried to talk to 'test@conference.gajim.org/nick/someresource'.
2009-12-05 11:49:07 +01:00
Stephan Erb acf06b4470 Merge local changes. 2009-12-05 11:28:13 +01:00
Stephan Erb d8f6e39020 Merge head. 2009-12-05 11:27:53 +01:00
Stephan Erb e72a8f519e Backed out changeset d4ef03c57366 2009-12-05 11:25:07 +01:00
Stephan Erb 754a683043 Mark internal methods as protected. 2009-12-05 11:22:24 +01:00
Thibaut GIRKA 594072999c Fix video output pipeline, and improve error dialog. fixes #5482 2009-12-03 23:07:45 +01:00
Yann Leboulanger 9914792723 re-enable the ability to connect as invisible: check that we don't send presence with show=invisible at the correct place, after we diferenciate invisible conection from not-invisible connection. Fixes #5473 2009-12-03 18:10:23 +01:00
Yann Leboulanger 31db9fa123 correctly check that gtk2.16 is installed at run time. Fixes #5478 2009-12-03 14:03:33 +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 c1f526c07d fix import order to be able to run tests 2009-12-02 10:23:17 +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
Stephan Erb e7337211fb Rename the Contacts class and document it, beeing a temporary refactoring artifact. 2009-12-01 23:31:17 +01:00
Thibaut GIRKA afaa90f91d Rename FailedApplication to JingleContentSetupException 2009-12-01 22:39:02 +01:00
Stephan Erb f128391189 One more vim config entry. 2009-12-01 22:31:42 +01:00
Stephan Erb d54543654d Add VIM indentation config to jingle files. 2009-12-01 22:25:29 +01:00
Stephan Erb b73bbb8cae Merge local changes. 2009-12-01 22:16:30 +01:00
Thibaut GIRKA 592bacce4a [Jingle] Fix make_bin_from_config, improve JingleSession.__parse_contents 2009-12-01 22:15:50 +01:00
Stephan Erb ca382031eb Fix bug that prevented avatars to be shown in groupchats. Bug was due to a wrong re-use of a local variable (local variabes are evil :-).
Additionally: Remove some appreviations and unneeded local variables.
2009-12-01 22:15:35 +01:00
Yann Leboulanger 484e3970d3 [dm] define an exception we use. Fixes #5457 2009-12-01 17:41:43 +01:00
Yann Leboulanger e7dd3e7d13 don't show in roster / notification that a contact unsubscribed us if we already popup up the dialog. Fixes #5470 2009-12-01 16:51:11 +01:00
Yann Leboulanger 002b8a720f finish using icon theme. Fixes #2378 2009-12-01 15:50:58 +01:00
Alexander Cherniuk ee42637795 Keep the doc-strings (even one-liners) unified, please 2009-12-01 00:07:36 +02:00
Thibaut GIRKA d295f9261d [Jingle] a bit of documentation/clarification ; added make_bin_from_config 2009-11-30 22:29:32 +01:00
Yann Leboulanger 5401b457d5 add stun_server option in pref window. 2009-11-30 21:10:24 +01:00
Yann Leboulanger b65590bacd don't traceback when gst is not installed 2009-11-30 16:37:08 +01:00
Yann Leboulanger 66fdb1490d don't try to import pysqlite2, we depend on sqlite3 2009-11-30 16:36:47 +01:00
Yann Leboulanger badbe820a1 prevent traceback when writing in a closed gc control. Fixes #5455 2009-11-30 14:32:59 +01:00
Alexander Cherniuk a0fea76ff2 BaseException.message is deprecated since 2.6. Fixes #5465 2009-11-30 14:58:43 +02:00
Alexander Cherniuk 684f45b148 Small refactoring bits 2009-11-30 12:53:26 +02:00
Stephan Erb 76013a044b Remove a very suspicious line. Maybe I introduce bugs here.
I remove this line because it makes no sense to assume that we have joind a groupchat, just because someone request a VCard for a jid which pretends to be from a Groupchat.
2009-11-30 00:34:23 +01:00
Stephan Erb 8eb48d4533 Remove redundant null checks. 2009-11-30 00:24:30 +01:00
Stephan Erb 07f5bf223f Remove commented code. We have version control for that. 2009-11-30 00:23:59 +01:00
Stephan Erb 750f032c4b Merge local changes. 2009-11-29 23:08:17 +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
Thibaut GIRKA c44fde896f [Jingle] Handle description-info ; catch only glib.GError when parsing bins 2009-11-29 22:45:34 +01:00
Thibaut GIRKA fe67de9bf1 [Jingle] Add converters and simplify pipelines configuration-side 2009-11-29 21:39:50 +01:00
Stephan Erb b2efc9685b Always show the 'add contact to roster' menu entry in textviews.
Showing it is more consistent than hiding it from the user. (We do the same in the Groupchat roster)
2009-11-29 21:06:26 +01:00
Thibaut GIRKA 132d71b08b [Jingle] Audio/video input/output now configurable 2009-11-29 15:39:26 +01:00
Yann Leboulanger e42bed8a56 fix default audio_input_device 2009-11-29 14:17:03 +01:00
Yann Leboulanger 2dfeb10fef set default values to audio/video input/output devices 2009-11-29 14:15:25 +01:00
Bruno Tarquini fe8bd2b027 autotools: remove confusing variables ${datadir} and DATADIR.
Those variables were confusing because autoconf usually defines DATADIR to
PREFIX/share and gajim uses both defs.datadir=PREFIX/share/gajim and
gajim.DATA_DIR=PREFIX/share/gajim/data.

Now, autoconf will use PKGDATADIR for setting the (renamed) defs.basedir
variable which will be used to set gajimpaths['DATA_DIR'] and
gajimpaths['ICONS_DIR'] in configpaths.py

Gajim will also looks for the ${GAJIM_BASEDIR} environment variable instead of
${datadir} which was really too generic (no namespace).
2009-11-28 12:54:41 +01:00
Bruno Tarquini 6123687dda autotools: add a new autoconf variable: ${gajim_srcdir}.
It expanded version is GAJIM_SRCDIR.

It indicate where pyfiles will be installed (for now: PREFIX/share/gajim/src).

simplify src/Makefile.am by using nobase_ and dist_ prefix.
nobase_ allows hiearchical installation instead of flat directory
installation.
2009-11-28 12:54:30 +01:00
Alexander Cherniuk 1ad6f217a8 gtk.ACCEL_VISIBLE is not needed anymore 2009-11-28 15:00:51 +02:00
Alexander Cherniuk f5fff3e4e6 Refactored CTRL+J 2009-11-28 14:53:31 +02:00
Alexander Cherniuk af67012f63 Added CTRL+J shortcut for joining a conference 2009-11-28 13:29:28 +02:00
Yann Leboulanger 38958094c9 device is saved in config, not name 2009-11-27 23:12:24 +01:00
Yann Leboulanger 5f58e2a9ac save audio / video input / output device in config 2009-11-27 23:11:17 +01:00
Alexander Cherniuk 9bfad93279 A final refactoring touch 2009-11-28 00:07:01 +02:00
Alexander Cherniuk 7c2ea20c03 A bit of refactoring 2009-11-27 23:46:09 +02:00
Yann Leboulanger 8b3276cc12 prepare preference audio / video tab 2009-11-27 22:17:24 +01:00
Stephan Erb 723c09d26d Remove logging within each idlequeue process step. (A log entry every two seconds without much value) 2009-11-27 21:03:38 +01:00
Yann Leboulanger 5b10d8fe5c base of using icon themes. see #2378 2009-11-27 16:42:32 +01:00
Alexander Cherniuk aed9690dc5 Tiny refactoring bits of jingle code 2009-11-27 12:09:43 +02:00
Thibaut GIRKA 04d098b4ec Merge local changes 2009-11-27 10:29:17 +01:00
Alexander Cherniuk 5b64efe4f3 Corrections for method refactoring 2009-11-27 11:13:27 +02:00
Alexander Cherniuk a8cb838769 Small portion of method refactoring 2009-11-27 11:06:35 +02:00
Alexander Cherniuk 3fe45b5a56 Fixes #5458 2009-11-27 10:50:24 +02:00
Alexander Cherniuk 24cea09fbd Missed some spots while refactoring 2009-11-27 10:24:31 +02:00
Yann Leboulanger a7ba440cab announce windows 7 in os info 2009-11-26 23:32:53 +01:00
Yann Leboulanger c6dffb8864 fix Gajim startup when bonjour is not available. 2009-11-26 23:00:57 +01:00
Thibaut GIRKA ee452a57a2 [Jingle] Renamed callbacks to match name conventions 2009-11-26 22:09:34 +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 8946a2f898 get statusicon position and size correctly now that we swtiched to gtk.statusicon 2009-11-26 20:18:09 +01:00
Alexander Cherniuk 4d904560a7 Last portion of doc-string and formatting refactoring 2009-11-26 18:12:52 +02:00
Alexander Cherniuk f084a1f78b One more portion of doc-string and formatting refactoring 2009-11-26 17:46:48 +02:00
Alexander Cherniuk 6d0f28c47d More doc-string (and not only) refactoring 2009-11-26 16:32:56 +02:00
Alexander Cherniuk 99472b1702 Yet more doc-string refactoring 2009-11-26 14:27:47 +02:00
Alexander Cherniuk 6bf2246de5 A big portion of doc-string refactoring 2009-11-26 13:58:12 +02:00
Alexander Cherniuk cea7c66f75 A portion of doc-string refactoring 2009-11-26 12:21:43 +02:00
Alexander Cherniuk a23961fbf6 Big portion of doc-string refactoring 2009-11-25 22:59:43 +02:00
Alexander Cherniuk 7316d00766 New portion of doc-string refactoring 2009-11-25 19:52:56 +02:00
Yann Leboulanger 18fc83c1e8 merge local diff 2009-11-25 16:51:26 +01:00
Yann Leboulanger 98e27253b6 prevent showing error message when we receive a PEP error message and really ignore it 2009-11-25 16:50:49 +01:00
Yann Leboulanger 1c137dd6c4 remove debug print 2009-11-25 16:49:13 +01:00
Alexander Cherniuk 31f5e22f62 One more portion of doc-strings refactoring 2009-11-25 17:45:05 +02:00
Yann Leboulanger 3aa07f485e refactor connection_handlers_zeroconf.py 2009-11-25 16:29:33 +01:00
Alexander Cherniuk f7b7e59935 More doc-string refactoring 2009-11-25 16:41:44 +02:00
Alexander Cherniuk 0ee0ade03a More doc-string refactoring 2009-11-25 15:52:32 +02:00
Alexander Cherniuk 8c82c35654 More doc-string refactoring 2009-11-25 15:24:48 +02:00
Alexander Cherniuk b6c4aaba6f Refactored doc-strings 2009-11-25 15:01:40 +02:00
Yann Leboulanger a6d2c4f286 fix typo in a variable name 2009-11-25 13:29:57 +01:00
Alexander Cherniuk 2325791eeb Minor refactoring 2009-11-25 13:39:05 +02:00
Yann Leboulanger 6c4724f53f fix attribute name. Fixes #5448 2009-11-25 12:31:40 +01:00
Yann Leboulanger 7eb24c3c53 fix traceback when using a non-BOSH proxy. Fixes #5449 2009-11-25 12:25:28 +01:00
Yann Leboulanger ddb493c87d always use statusicon in systray, not event icon, we already blink. 2009-11-25 08:27:06 +01:00
Alexander Cherniuk c5843e8878 Fixes #5447 2009-11-25 09:10:30 +02:00
Yann Leboulanger bbf12be6f2 set AccountCreationWizardWindow transient for RosterWindow. Fixes #5444 2009-11-24 20:07:05 +01:00
Yann Leboulanger 5ce4d52dc3 Don't clean dict twice, Fixes #5419 2009-11-24 19:41:29 +01:00
Stephan Erb bcef68c8e2 Merge local changes. 2009-11-24 16:04:58 +01:00
Yann Leboulanger 39dc648ec8 don't use removed variables 2009-11-24 15:42:31 +01:00
Yann Leboulanger 478454985b fix strimg comparison according to locales. Fixes #4201 2009-11-24 15:41:16 +01:00
Yann Leboulanger e3dbbed2dd auto-increment order value in privacy list entries. Fixes #5441 2009-11-24 15:06:04 +01:00
Yann Leboulanger eb11c24eea egg.trayicon is dead. Light a candle :'(
Fixes #3021, #5246
2009-11-24 14:33:49 +01:00
Alexander Cherniuk 94f6d6b79a Fixed timezone parsing 2009-11-24 14:24:35 +02:00
Alexander Cherniuk 3a190b8328 Fixed a typo 2009-11-24 12:20:40 +02:00
Alexander Cherniuk 8be7f9d2e1 Setting my identity straight 2009-11-23 16:08:09 +02:00
Stephan Erb fb456b1ee4 Make dependencies of ConnectionPEP explicit.
This means ConnectionPEP now knows the objects on which it calls method. Before, it just assumed that: "it will be subclassed and that the subclass defines a few methods".

Big advantage is that false positives in the pylint report are gone
2009-11-22 22:57:52 +01:00
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
red-agent 22ab1c9553 Fixed refactoring artifact 2009-11-22 20:05:30 +02:00
red-agent 102126b330 Fixed broken resource setting 2009-11-22 13:33:19 +02:00
Yann Leboulanger 8bd359dc30 fix resizing of the MUC occupant treeview when we resize chat window. Fixes #5433 2009-11-20 22:09:05 +01:00
Yann Leboulanger 094941f89e don't try to send thing after we are disconnected. Fixes #5437 2009-11-19 22:42:35 +01:00
Yann Leboulanger 8720eb221d don't propose to add contacts we already have in our roster when we get a RIE request. 2009-11-19 22:13:16 +01:00
Yann Leboulanger d664daad1a we can now send pep thing to a zeroconf connection objec, it will just send nothing. so GUI doesn't have to know it's a zeroconf connection or not. fixes #5432 2009-11-19 20:36:40 +01:00
red-agent 909ef8da53 Added /grep command. Fixes #5438 2009-11-19 07:39:04 +02:00
Yann Leboulanger 750fbc844d [Urcher] ability to copy emoticons when they are selected. Fixes #2570 2009-11-18 21:32:10 +01:00
Yann Leboulanger c9c5f72ff9 fix traceback on startup. Fixes #5435 2009-11-18 21:07:11 +01:00
Yann Leboulanger 4671f62d2f fix ConnectionZeroconf initialization 2009-11-18 11:16:15 +01:00
Yann Leboulanger 86b39a72c6 fix http message parsing, it may contain \n\n! 2009-11-18 11:12:06 +01:00
Yann Leboulanger 88f3104c4e refactor normal and zeroconf Connection objects with a CommonConnection class 2009-11-18 11:06:09 +01:00
Yann Leboulanger 960e402cf0 typo in a comment 2009-11-18 11:04:05 +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
Yann Leboulanger ff551cd75d make some strings translatable in RIE dialog 2009-11-16 20:56:51 +01:00
Stephan Erb 8b3a82ff12 Merge changes from default branch into refactoring branch 2009-11-16 19:53:43 +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
Yann Leboulanger 1c28dbfae9 properly decode string in history manager. Fixes #5430 2009-11-16 16:42:40 +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 4c03c1ab85 Remove duplicated Icon determination logic used when drawing accounts. 2009-11-15 22:41:17 +01:00
Thibaut GIRKA b1173a2e87 Fix a regression introduced by my last patch 2009-11-15 21:21:10 +01:00
Thibaut GIRKA b2c5810869 Refactorize a bit jingle.py and split it into different files.
There is still room for improvement, but it should be better.
2009-11-15 20:47:06 +01:00
Stephan Erb 3b15d70782 Unify PEP cell_data_functions. 2009-11-15 17:11:06 +01:00
Stephan Erb b7c7beafd9 Unify the PEP drawing methods in the RosterWindow. 2009-11-15 17:00:39 +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
Stephan Erb ac5d0f24da Fix error in the documentation of our xmpp dispatcher fork.
Raise NodeProcessed if the stanza should NOT be handled by other user handlers.
2009-11-14 19:54:33 +01:00
Thibaut GIRKA e5062f77ea [Jingle] User can send DTMF tones using the /dtmf command 2009-11-13 22:58:02 +01:00
Yann Leboulanger 44ab50d080 blacklist jingle in caps. TYhis mean that if clientr don't support caps, we assume it doesn't support jingle 2009-11-13 20:01:44 +01:00
Yann Leboulanger 1ee2e72a02 fix renaming an account 2009-11-13 19:22:36 +01:00
Stephan Erb 3696e5296d Merge local changes. 2009-11-13 08:58:00 +01:00
Stephan Erb 36fb5def4b Shrink public interface of the MetacontactManager. 2009-11-12 22:58:45 +01:00
Stephan Erb ee5eb8b546 Try to handle incomplete HTTP. See #5401. Please test.
Approach: Keep filling the receive buffer until we have found enough data to extract the first HTTP header and body
2009-11-12 21:23:10 +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
Stephan Erb af3af5bec8 Remove caps which have not been seen for three months from the db.
Thanks Asterix for the initial version of this patch!
2009-11-11 23:14:51 +01:00
Stephan Erb 8203211e74 Inject account object instead of account string into contact instances.
Each contact has now access to the account object instead of the account string.
2009-11-11 21:38:39 +01:00
Stephan Erb ae9376ff63 Split the 'account sensitive' parts of the Contacts class and move them to an intermediate Contacts_New class.
The Contact class remains the public interface for contact handling. This is only a single step of a longer refactoring to empower the Account class.
2009-11-10 22:56:10 +01:00
red-agent f457497bd1 Fixed the /audio and /video commands 2009-11-10 23:33:39 +02:00
red-agent 8a464786f4 Added /audio /video commands 2009-11-10 23:06:59 +02:00
Yann Leboulanger e617b134b2 Alt-a -> Alt-d to open advanced action menu in (group)chat control. Fixes #5387 2009-11-10 21:50:11 +01:00
Stephan Erb b4285302db Make the GC_Contacts class 'account insensitive'. Instead, create an Account class which holds a GC_Contacts object.
The API has been preserved. For now the old Contacts() API has not been changed.
2009-11-10 21:08:25 +01:00
Stephan Erb 3ddc5ce78e Use implicit delegation with __getattr__ instead of explicit delegation via method calls 2009-11-10 19:26:17 +01:00
Stephan Erb 2c296f3fe0 Create a GC_Contacts() class and move groupchat related behavior to it.
This is similar to what has been done with the MetacontactManager
2009-11-10 19:05:47 +01:00
Stephan Erb ba9ef8301b Remove superfluous clear_contacts method 2009-11-09 23:03:16 +01:00
Stephan Erb 004619f99e Work around a reported NoneType exception. 2009-11-09 22:03:14 +01:00
Stephan Erb d5ac527f84 Filter duplicate groups centrally. 2009-11-09 21:51:43 +01:00
Stephan Erb cec93b6135 Push method to check if a specific ClientCaps supports a feature down to the caps module.
Public interfaces stay the same.
2009-11-09 21:26:56 +01:00
Yann Leboulanger d70b74e6b6 [Gotham48] add nice icons to toggle audio / video 2009-11-08 10:08:15 +01:00
Yann Leboulanger 8f2120371b update correctly self_contact Contact instance and roster row when we use an anonymous account (our jid changes in this case). Fixes #5370 2009-11-07 12:37:16 +01:00
Yann Leboulanger e7a6dffe7b no need of the jid parameter when we look for self contact iter 2009-11-07 09:34:23 +01:00
Yann Leboulanger 4bf3be4665 don't remove a _control when we try to rename it to the same name. Fixes #5346 2009-11-06 20:51:16 +01:00
Yann Leboulanger 11f01f1c1c fix traceback when disconnecting from BOSH. 2009-11-06 17:58:39 +01:00
Yann Leboulanger 697d2a7324 fix BOSH connection with ejabberd. Fixes #5401 2009-11-06 17:58:14 +01:00
Yann Leboulanger 2061dd2118 fix receiving long messages in several parts with BOSH. see #5401 2009-11-12 22:13:11 +01:00
Yann Leboulanger ae9f7ca410 prevent a traceback when we disconnect a zeroconf socket wil a message attribute. Fixes #5049 2009-11-12 21:42:20 +01:00
Yann Leboulanger bf46c5dd12 use correct color for links in received XHTML messages. Fixes #5411 2009-11-06 08:19:32 +01:00
Yann Leboulanger ea5429b248 fix XEP-202 implementation, child element must be <time>, not <query>. Fixes #5412 2009-11-06 08:11:07 +01:00
Yann Leboulanger dec49976c4 Use a separate label in RIE dialog instead of a stock button. This way we can change label easily. 2009-11-05 22:20:45 +01:00
Stephan Erb 17af7902e4 Make it explicit whether an ordinary Contact, a Self Contact or a Not-In-Roster Contact is created. 2009-11-05 22:16:38 +01:00
Stephan Erb f297aa0a11 Make methods of MetacontactManager private if those are only used internally 2009-11-05 20:09:26 +01:00
Yann Leboulanger 4743d224fd fix sending message to several contacts (in this case we cannot get a contact instance as there are several jids in one. Fixes #5408 2009-11-05 19:44:01 +01:00
Stephan Erb 0abb1dfd20 Extract class: MetacontactManager from Contacts
For easy migration, interface is still preserved.
2009-11-05 19:43:25 +01:00
Yann Leboulanger eb32680a91 fix caps query verification. 2009-11-05 19:24:27 +01:00
Yann Leboulanger c8cc5be366 don't print libasyncns warning on stdout. Fixes #5407 2009-11-05 19:14:19 +01:00
Yann Leboulanger 32309d2a30 [marcin.bachry] disconnect once proxy has been tested. Fixes #5409 2009-11-05 19:11:31 +01:00
Stephan Erb 7829e7d40c Removed unused module 'meta.py' 2009-11-05 17:05:13 +01:00
Stephan Erb 8a127b4e4d Several small bugfixes: Add missing accout parameter to constructors. 2009-11-05 16:53:30 +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 dec25246df Missing bits of the last commit (add account parameter to contact constructor) 2009-11-05 16:22:21 +01:00
Stephan Erb 06129f45ef Let contact instances know their corresponding account.
contact.account and gc_contact.account contains the account name of the owning account. There is still code around in many placed which tries to workaround this missing information. Such code has to be migrated on per-need basis.
2009-11-05 15:57:43 +01:00
Stephan Erb dce2ea58b3 Merge local changes with default. 2009-11-05 09:11:15 +01:00
Stephan Erb 3157cf0b1b Allow multiple event handlers for a single Interface event.
We can use that until the plugin branch is available.
2009-11-05 08:53:19 +01:00
Yann Leboulanger 1a76b72b58 fix bosh url parsing (wrong regex replaced by urlparse.urlsplit() funxtion) 2009-11-05 08:50:21 +01:00
Stephan Erb addaaa9242 Fix regex used in urisplit. It failed to split the host:port part. 2009-11-04 23:46:16 +01:00
Stephan Erb c1cbc07645 Check for empty caps values and not just for None. See #5399
This prevents our caps cache from getting filled with invalid caps values. Furtheremore, NullClientCaps has been saveguarded so that it won't fail for people with already tainted caches.
2009-11-04 23:05:20 +01:00
Yann Leboulanger b2a4c92e7a better error handling 2009-11-04 22:06:45 +01:00
Yann Leboulanger 2aef55ad2a better URI splitting code. see #5400, #5401 2009-11-04 21:56:33 +01:00
Yann Leboulanger 4343d706a0 use default port for bosh proxy when none is provided. Fixes #5400, #5401 2009-11-04 21:17:57 +01:00
Yann Leboulanger 124483ea49 prevent traceback. Fixes #5402 2009-11-04 20:37:22 +01:00
Stephan Erb e1ccec089c Add missing file 2009-11-03 23:37:11 +01:00
Stephan Erb 3a98a4170c Move Interface() god class from gajim.py to gui_interface.py. 2009-11-03 22:14:19 +01:00
red-agent 0e38897445 Minor refactoring 2009-11-03 10:14:23 +02:00
red-agent aae1dd6c38 Fixed an issue with the bare command prefix 2009-11-02 17:42:00 +02:00
Yann Leboulanger d19df32c16 reorder imports in history_manager so that it can bu run. Fixes #5391 2009-11-02 06:59:56 +01:00
Yann Leboulanger cb1fcc8cf8 update ft proxies list 2009-11-01 16:50:27 +01:00
Yann Leboulanger ea973ddc2e fix exception handling in command system 2009-11-01 13:50:34 +01:00
Yann Leboulanger a75fba495b better error message 2009-11-01 12:40:29 +01:00
Yann Leboulanger 6914546f2b merge backout branch 2009-11-01 12:15:41 +01:00
Yann Leboulanger 21ffce890c Backed out changeset f169c518cd8d
sqlite with ? doesn't work as expected
2009-11-01 12:14:42 +01:00
Yann Leboulanger e9264abb8a fix variable name 2009-11-01 09:52:33 +01:00
Yann Leboulanger b0712e1774 replace all %d / %s things in SQL queries by ? for security reasons 2009-10-31 23:57:14 +01:00
Yann Leboulanger d5351f6328 ignore unknown show types when we receive strange stanza. 2009-10-31 23:22:12 +01:00
Yann Leboulanger 48c82ae7fa [Mattj] improve join groupchat behaviour. Fixes #5383 2009-10-31 19:35:46 +01:00
Yann Leboulanger e10ff2c907 fix typo in a string 2009-10-31 19:15:18 +01:00
Yann Leboulanger 4ae64ff6e6 ability to configure out/inmsgtxt color in preference window. Fixes #5372 2009-10-31 19:03:03 +01:00
Stephan Erb a9f5bb59d7 Merge changes from default branch into refactoring branch 2009-10-31 17:25:47 +01:00
Stephan Erb 47700e67da Rename CacheItem.update to CacheItem.set_and_store as this seems more intense giving. 2009-10-31 09:14:55 +01:00
Stephan Erb 99e8487db9 Move compute_caps_hash from helpers to caps module. 2009-10-30 23:55:03 +01:00
Stephan Erb 47f875a4bc Move CapsCache global from gajim.capscache to caps.capscache. 2009-10-30 23:01:25 +01:00
Yann Leboulanger 66deb15bad fix variable name. Fixes #5379 2009-10-30 20:04:20 +01:00
Yann Leboulanger c91da54c9c remove hack I did for #5366, It was most probably due to #5375. see #5366, #5375 2009-10-30 09:51:16 +01:00
Yann Leboulanger bf9c6fb6a1 prevent traceback when changing resource of a control when there is no event for the account at all. Fixes #5375 2009-10-30 09:44:40 +01:00
Yann Leboulanger 5962494a9e connect some missing handlers in chat control context menu. Fixes #5369 2009-10-29 16:46:36 +01:00
Yann Leboulanger b682cc1791 use correct function for plural forms translation 2009-10-29 15:00:48 +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 bd714f66fc Move common part of Contact and GC_Contact into a new CommonContact class.
The CommonClass helps to spot easily where GC_Contacts and Contacts differ. This is just the first step a potential refactoring in this area.
2009-10-28 23:37:40 +01:00
Yann Leboulanger 8e98b3954b fix traceback with bash completion 2009-10-28 22:15:46 +01:00
Yann Leboulanger d6f4241102 prevent a traceback which happen with obscure reasons. Fixes #5366 2009-10-28 20:03:45 +01:00
Yann Leboulanger 8ddd6a298b [MattJ] re-fix /join command. already done in [8116020da28c] 2009-10-28 15:43:05 +01:00
Yann Leboulanger 7ae146e0e8 don't try to add an id to all outgoing messages. It's useless. Fixes #5355 2009-10-28 13:54:58 +01:00
Stephan Erb 6f71efdc47 Add missing local variable in resource submenu builder 2009-10-28 13:46:41 +01:00
Yann Leboulanger 5716ba5fd5 remove some deprecated iconsets. Fixes #5284 2009-10-28 13:20:27 +01:00
Yann Leboulanger 3f629341f6 call some upgrade config function that were not in 0.12.5 and are needed for 0.13 2009-10-28 12:38:22 +01:00
Yann Leboulanger 90fd7f6e68 [louizatakk] better bash completion. Fixes #5353 2009-10-28 12:19:20 +01:00
Yann Leboulanger 31d2bcbe7d remove the possibility to configure systray if module is not available. Fixes #5345 2009-10-28 11:11:55 +01:00
Yann Leboulanger 52c788795a we can now drop in the middle of a metacontact. Fixes #4804 2009-10-28 10:58:43 +01:00
Stephan Erb 976175e04c Work around potential NoneType in obscure function _is_buggy_gajim()' 2009-10-27 23:30:08 +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
Stephan Erb c7ff97703f Redistribute responsibility: Let contact instances check if features are supported 2009-10-27 20:31:09 +01:00
Yann Leboulanger 5698327831 [Stepan Kasal] fix italic detection with //. Fixes #4217 2009-10-27 19:36:36 +01:00
Yann Leboulanger 3bf4420ce3 rename roster_contact_context_menu.glade to contact_context_menu.glade 2009-10-27 19:02:14 +01:00