Commit Graph

307 Commits

Author SHA1 Message Date
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 981dca2b6b Remove get_uf_{mood,activity} as nobody used them.
Didn't notice them and implemented something like that myself.
2008-07-29 19:27:16 +00:00
Yann Leboulanger e21b1dcb37 remove publish_mood, publish_activity and publish_nick options. 2008-07-29 06:15:41 +00:00
js f7d8631a5c New activity dialog. 2008-07-28 20:57:56 +00:00
js 87d5904384 Possibility to disable ESessions (not only autonegotiation) per account 2008-07-24 22:13:59 +00:00
js c5e679a078 Show mood in chat window. 2008-07-22 21:08:52 +00:00
Brendan Taylor 758adfbaf3 fix esession caps condition 2008-07-21 19:55:16 +00:00
js 2cf1171124 Remove \n from distribution name. 2008-07-21 17:29:49 +00:00
Brendan Taylor c9b2556c41 make esessions an optional caps feature 2008-07-20 15:54:05 +00:00
Brendan Taylor e3613be1fa first pass at stripping out the one-tab-per-session code 2008-06-26 23:36:58 +00:00
js 9634f98250 * Implemented XEP-0184 section 5.
* Added NS_RECEIPTS to protocol namespace list.
* Show our support of XEP-0184 in caps.
* Added a big, fat warning to get_contact as this does not work as
  expected.
* There was some strangeness in our XEP-0022, it added an id tag to
  the x tag, which isn't mentioned anywhere in the XEP. And for some
  strange reason, that id even was the same all the time.
* Fixed a typo.
2008-06-17 16:03:21 +00:00
Yann Leboulanger 18d8f98f3c add "other" to all sub-activities and fix "Having an appointment" activity. Fixes #4019, #3981 2008-06-15 18:13:03 +00:00
Brendan Taylor 964cb10163 hopefully fix the last of the get_control calls (fixes #4018) 2008-06-14 08:43:20 +00:00
Yann Leboulanger e807c056d3 remove Z char (meaning UTC) in received timestamp. fixes #3796 2008-06-13 15:34:55 +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
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
Stephan Erb d41f245370 Remove debug print. 2008-05-14 18:45:06 +00:00
Yann Leboulanger 44fc7ddd0c fix caps hash computaion according to XEP-0115. fixes #3925 2008-05-14 18:30:39 +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
Yann Leboulanger 3193a8e8cf [Florob] Send and handle nicknames reveices through PEP. Fixes #3651 2008-05-05 21:55:59 +00:00
Jean-Marie Traissard bd812b8f26 [elghinn] Specify exception we want to catch so we see if there are others
problems.
2008-05-03 01:30:05 +00:00
Yann Leboulanger 96a50f6c07 don't depend on python2.5 Fixes #3888 2008-04-27 18:11:34 +00:00
Yann Leboulanger a3827fe5d0 new XEP-0115 implementation (version 1.5) 2008-04-20 22:58:47 +00:00
Jean-Marie Traissard 968b2acc4f 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."
Comparisons to None part; second one...
roster_win.py is NOT checked here (waiting for modelfilter)
2008-04-18 00:26:07 +00:00
Jean-Marie Traissard 2ce13dc40e 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."
Comparisons to None part
roster_win.py is NOT checked here (waiting for modelfilter)
2008-04-18 00:02:56 +00:00
Stephan Erb 7e6431fcea Small fixes for activity dialog. 2008-04-07 11:44:35 +00:00
Stephan Erb 855a72855d Add get_uf_* functions to make mood and activity translatable. 2008-04-07 11:14:23 +00:00
Stephan Erb e95a9fa5ef Fix indentation. 2008-04-04 09:51:49 +00:00
Yann Leboulanger 1fd13ae4fa fix call to Popen() 2008-03-10 22:11:43 +00:00
Yann Leboulanger 7f639f145d Use subprocess instead of Popen2. fixes #3369 2008-03-10 13:27:31 +00:00
Yann Leboulanger 19e594f919 [Merwok] use os.pathsep to know the PATH environment separator 2008-02-17 16:01:44 +00:00
Yann Leboulanger e93d287c5b [TuX] better uname call 2008-01-30 21:31:19 +00:00
Yann Leboulanger 58210daf44 arch linux file /etc/arch-release doesn't contain version number 2008-01-30 21:29:55 +00:00
Stephan Erb 30ad68a26c Backport some fixes to zeroconf: don't fail on special characters, don't allow gpg usage when it is not secure or even possible
Be more verbose when there is a key missmatch.

Mind that presence in zeroconf are not signed, gpg keys have to be assigned manually therefore.
2007-12-31 01:19:08 +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
Jean-Marie Traissard 314a52708e CodingStandards : No space in indentation 2007-12-27 18:58:07 +00:00
Yann Leboulanger f1a2f0966d use jabber iconset when no iconset exists for a transport. fixes #3604 2007-12-20 19:43:24 +00:00
James Newton f995b3268e native gtk on osx seems to like to send file uri's like
'file://localhost/usr/bin/foo'. rip out the host and check the uri's for valid
before asking the user to send the files.
2007-11-19 15:53:16 +00:00
James Newton f1d3f85037 Fixed a bug with forcing autodetection of browser/mail during startup when the
config file already existed and had a different option choosen. Added in an
'Always use OS/X default applications' option for when running on OS/X. Changed
the custom defaults to use OS/X native applications.
2007-11-17 15:03:02 +00:00
Yann Leboulanger 1f7a462788 [James Newton] osx port for Gajim. a GREAT thanks!!! 2007-11-14 19:47:52 +00:00
Yann Leboulanger 605caae2b8 My name has changed 2007-10-22 11:33:50 +00:00
Yann Leboulanger 22c1aeda29 next release will be GPL v3. fixes #3290 2007-10-22 11:13:13 +00:00
Yann Leboulanger 025ef4f3eb [shivan] show nothing in status combobox when status is not unified for all globaly sync'ed accounts. see #3489 2007-10-14 19:08:29 +00:00
Yann Leboulanger df13453388 revert bad commit from [8817]. fixes #3443 2007-09-16 21:27:11 +00:00
Yann Leboulanger 29cc2d0939 add key shortcut to open history and information window. fixes #3233 2007-09-15 10:11:46 +00:00
Stephan Erb 2fdeabc012 Add my copyright :-) 2007-08-31 23:19:23 +00:00
Yann Leboulanger 2419bd509c ability to load transport iconsets from ~/.gajim/iconsets/transports. Fixes #3390 2007-08-22 22:46:31 +00:00
Yann Leboulanger e906a096c9 [blarz] ability to load iconsets from ~/.gajim/iconsets. fixes #3339 2007-08-05 22:57:04 +00:00
Stephan Erb 8bbc23dfd6 * Use same height for all banners. Fixes #2770
* Show only one status line in chatwindows, indicate when it is shortened
2007-07-30 12:17:04 +00:00
Julien Pivotto 5c36dd8e78 [Lukas and I] use 'event' instead of 'message' as icons names ans
states. Fix #2755.
2007-07-13 10:11:49 +00:00
Yann Leboulanger 20965b9ba5 [lukas and I] improve tooltip to show info about pending events. fixes #1971 2007-07-03 09:31:43 +00:00
Travis Shirk 270c956db3 Handle malformed timestamps (which would cause an unhandled exception and hork the connection)
and XEP-82 (dashes in timestamps).
2007-06-29 21:21:08 +00:00
Yann Leboulanger 967d050db2 call beep command instead of print '\a' <- doesn't work. fixes #909 2007-06-27 10:20:24 +00:00
Stephan Erb 5f82f1a413 Fix autocomplation for jids where username is set as nickname. Fixes #2608. 2007-06-13 21:29:03 +00:00
Yann Leboulanger 52c6c6cbb7 [roidelapluie] better groupchat support in roster and systray. Better nick support 2007-06-03 13:40:14 +00:00
Julien Pivotto 30ac161ee9 Fix a small bug with events and groupchats 2007-05-17 19:54:46 +00:00
Julien Pivotto 993d72a8c1 Fix a bug with receiving Private Messages when roster is minimized, print the number of unread pm in roster, and change icon when a pm is received. 2007-05-17 12:55:44 +00:00
Julien Pivotto 253c7e6cfc (Fix #3034) Add ability to minimize groupchats in roster, and to minimize autojoigned bookmarked rooms at launch. 2007-05-03 21:02:50 +00:00
Yann Leboulanger ca7ff635d9 [bronger] show user defined avatar in tooltip too. fixes #2967 2007-04-22 18:21:30 +00:00
Jean-Marie Traissard 68619a5597 No space in indentation, /src/common/ part 2007-02-04 18:57:25 +00:00
Yann Leboulanger ba2b1a0f58 change function name. see #2898 2007-01-17 11:40:59 +00:00
Yann Leboulanger abcb9a35f1 handle correltly SRV and registration on IDN servers. fixes #2898 2007-01-16 22:36:41 +00:00
Yann Leboulanger 53b901cf4e [Yavor Doganov] some typoe in strings and comments 2007-01-02 12:17:51 +00:00
Nikos Kouremenos e3dd735831 yeah it is official. Gajim runs on Windows Vista. Now it even detects it and sends it as OS [previously was just saying Windows]. Long Live Ballmer! [hahaha]: http://img86.imageshack.us/img86/7944/myvistadesktopow7.jpg 2006-11-29 02:34:07 +00:00
Yann Leboulanger c69061b41c do not allow to join a malformed room (abc/def@server.org). fixes #2520. 2006-11-22 23:21:33 +00:00
Nikos Kouremenos 0c5a736d0e fix bad logic 2006-11-18 23:48:31 +00:00
Nikos Kouremenos 49f1cd3bcf calling the module SRE is deprecated [in py25] in favor of RE. so use RE 2006-11-18 23:21:59 +00:00
Alex Mauer 54fc7cb2b9 * Wait for lsb_release after we're done with it, so it doesn't stay
defunct
2006-11-14 23:07:14 +00:00
Jean-Marie Traissard b978097c42 Removed import sys, useless since [7326] 2006-11-03 06:41:34 +00:00
Jean-Marie Traissard 1a12bcc831 Do not print unwanted notifications for file_* events 2006-11-03 05:41:11 +00:00
Nikos Kouremenos fa20b21507 use locale.getpreferredencoding() instead of sys.getfsencoding in decode_string 2006-11-02 13:42:51 +00:00
Nikos Kouremenos c494b7f5b9 if it is alreayd unicode instance, do not decode 2006-11-02 13:40:57 +00:00
Nikos Kouremenos 78e56c56e8 rm the print 2006-10-20 10:08:08 +00:00
Nikos Kouremenos cdb7fb67e6 add print to assist baze. see #2600 2006-10-20 09:43:40 +00:00
Nikos Kouremenos b37bf4ec0a common/helpers also does exo-open 2006-10-20 09:25:14 +00:00
Yann Leboulanger 56df70242e do not call gtkgui_helpers functions in common folder. Also fix a traceback when trying to view systray tooltip 2006-10-06 14:58:01 +00:00
Yann Leboulanger 9b83c74487 move gtkgui_helpers.reduce_chars_newlines to common/helpers.py. It's not GTK related. 2006-10-06 14:52:25 +00:00
Nikos Kouremenos 4fda072f0f make tooltip work for the new api too 2006-10-05 00:06:57 +00:00
Nikos Kouremenos 9dbc502b54 fix identation 2006-09-28 14:47:18 +00:00
Nikos Kouremenos b19b73d4cc use better varname; put a comment or two; try to make it better understandable; rm two unneeded lines 2006-09-28 13:35:53 +00:00
Jean-Marie Traissard 19dbb37f80 Fix var name 2006-09-28 10:56:03 +00:00
Nikos Kouremenos 72e8da7130 intro helpers.build_command and fix helpers.exec_command(). fixes #2464 [now all is okay if path has spaces] 2006-09-28 10:44:16 +00:00
Jean-Marie Traissard 84b9e2af34 +gc-tooltip:Create get_uf_affiliation(); show SHOW in the place of status message if and
only if there is no status message, else don't show SHOW
+roster-tooltip:Show subscription only if it is different from 'both'; integrate SHOW to
last_status_time (status message alone in second line); name is now title, jid is after;
status message and show are italic everywhere; last_status_time is not showed anymore when
more than one ressource, takes too muck place(was broken anyway).
Fixes #2110 if no comment.
2006-09-26 02:41:47 +00:00
Jean-Marie Traissard 8c07a06622 Don't allow notifs when we are away/xa/dnd and autopopupaway is False.
(Undo second part of [6735])
2006-09-20 17:40:42 +00:00
Yann Leboulanger b1d32661fc fix logic for showing notification window 2006-09-06 20:15:06 +00:00
Nikos Kouremenos bd01e5719b INTRODUCING ensure_utf8_string, use it to fix BLOCKER bug for Gajim/Windows (#2392) 2006-09-06 13:28:38 +00:00
Nikos Kouremenos 9bd4442784 since we demand python 2.4 remove 2.3 legacy support code 2006-09-06 13:15:32 +00:00
Yann Leboulanger 7a89f716e4 handle correctly notification window in ANC, particulary le tab_opened condition. 2006-09-05 15:43:07 +00:00
Yann Leboulanger a67eaba727 events are now saved in an Event class. show in roster/systray options in Advanced Notification Control (for incomming messages) now work. 2006-09-02 21:01:11 +00:00
Yann Leboulanger 75fe384da4 handle advanced notification for new_message event only (without systray / roster / urgency hint that require a event refactorizatin)
use subprocess module as we depend on python2.4
2006-08-26 22:51:33 +00:00
Yann Leboulanger a54ee0229d introduce play_sound_file function in helpers 2006-07-17 10:04:43 +00:00
Jean-Marie Traissard 10ba862ed4 We want beep per event, reverting [6494]. Sorry, thought it was a bug.
Note that if works only if beep enabled in kernel conf
2006-06-19 15:38:41 +00:00
Jean-Marie Traissard e66a8a3430 Fix beep for event notification 2006-06-19 14:58:41 +00:00
Yann Leboulanger bc26593974 use gettext.install. Fixes #497 2006-06-15 06:49:04 +00:00
Dimitur Kirov b51ba152ea nkour: fix slack version 2006-05-29 14:19:18 +00:00
Dimitur Kirov b145e59b41 moved completion dict creation in helpers.py 2006-05-08 22:44:47 +00:00
Yann Leboulanger 064b7a234c correct list of not allowed chars under windows. Fixes #1913 2006-05-02 06:36:49 +00:00
Yann Leboulanger 4e2f02c725 fix import (add missing, remove useless) 2006-04-11 18:36:09 +00:00
Nikos Kouremenos 9e35ac7aeb improve function name; move it to where we keep those 2006-04-08 10:28:53 +00:00
Jean-Marie Traissard f2355f9e6c print submenus only when more than one account is connected, not when more than one is configured, sort
some menus in systray->chat
2006-04-06 18:37:24 +00:00
Yann Leboulanger ba7ef979b7 common/gajim can't contain _()O so move it to helpers
prevent renaming of special groups
2006-03-30 21:35:43 +00:00
Nikos Kouremenos 1dc069f237 overkill to use sre for just replace 2006-03-30 16:08:54 +00:00
Nikos Kouremenos 6caf013f52 use much better varname and comment the heck out of it 2006-03-27 23:32:39 +00:00
Nikos Kouremenos 0190ac90a4 [jim] fix logic bug 2006-03-27 23:15:19 +00:00
Nikos Kouremenos d1bb5cbc74 again fix logic after cut-paste 2006-03-27 23:10:41 +00:00
Nikos Kouremenos 0bd9e77fc9 fix logic. thanks Jim for report 2006-03-27 22:42:42 +00:00
Nikos Kouremenos 5528e739b0 helpers that do not relate with xmpp, belong to helpers.py not to common/gajim.py. if they have gtk they belong to gtkgui_helpers. also use those allover 2006-03-27 22:31:14 +00:00
Nikos Kouremenos 6a44733d69 commented code, beautiful code 2006-03-26 19:35:29 +00:00
Yann Leboulanger a5d95b4792 when we change combobox, only look in global synced accounts if one is connected. Fixes #1724 2006-03-26 13:07:11 +00:00
Yann Leboulanger fb758eaf89 use sanitize_filename func before writing a file to HD. Fixes #1722 2006-03-26 11:46:04 +00:00
Yann Leboulanger 1fafe3b08c handle correctly resources in queue of events. Fixes #1706 2006-03-25 17:05:54 +00:00
Nikos Kouremenos eca21781cb fix len to not take into account the extension (we pass full filename anyways) 2006-03-21 13:57:02 +00:00
Nikos Kouremenos b3bf080e6f intro helpers.sanitize_filename() to make sure we do not run, use it where it is appropriate 2006-03-21 13:55:22 +00:00
Dimitur Kirov ae33330ac6 send fake activate stanza to assert that proxy
works correctly
2006-03-20 21:24:10 +00:00
Dimitur Kirov 540103f381 arranged some methods from connection.py in
classes defeined in connection_handlers.py
2006-03-19 14:54:00 +00:00
Yann Leboulanger 21a65d2568 minor typo 2006-03-18 08:13:27 +00:00
Yann Leboulanger 3a255e5102 fix indentation in common/helpers.py 2006-03-17 19:56:05 +00:00
Nikos Kouremenos 036265081b fix typo; also saner defaults [only first time] for last_save_dir and last_send_dir 2006-03-15 02:09:57 +00:00
Nikos Kouremenos 396c66f8f8 set avatar filechooser defaults to My Pictures in the OS that understand user needs [aka Windows] 2006-03-15 01:40:10 +00:00
Nikos Kouremenos 3e2ec2495e rm trailing spaces from helpers.py 2006-02-27 15:29:13 +00:00
Nikos Kouremenos f674babbd1 spacing 2006-02-26 14:12:55 +00:00
Yann Leboulanger 76a3bbaf25 icon name is not in roster 2006-02-20 13:08:45 +00:00
Yann Leboulanger 4415d770fc not_in_the_roster.png -> not_in_roster.png 2006-02-20 11:02:35 +00:00
Nikos Kouremenos 967d278541 [jim++] sound events show in UI as translatable nice words. [me] refactor the whole thing 2006-02-16 15:21:34 +00:00
Nikos Kouremenos f529f0364a revert accidental commit of common/helpers.py 2006-02-03 01:17:03 +00:00
Nikos Kouremenos 19bab6832e also commit glade file 2006-02-03 01:15:03 +00:00
Nikos Kouremenos 9f4753cc06 do not add http:// in urls. fixes #1493 2006-01-31 21:13:46 +00:00
Yann Leboulanger 1d49a10c58 remove old FIXME 2006-01-24 22:34:45 +00:00
Yann Leboulanger 2dc4eb3f21 [campey] not in the roster -> Not in Roster. Fixes #1054 2006-01-19 21:55:01 +00:00
Travis Shirk f01c0eac85 Label string fix for #1054 2006-01-14 22:08:52 +00:00
Travis Shirk a52596266c Merged trunk 2005-12-30 21:37:36 +00:00
Yann Leboulanger 993c09ec70 catch correct exception when interrupt system call 2005-12-21 17:55:57 +00:00
Yann Leboulanger 323663132b fix more interrupt system call 2005-12-17 23:07:13 +00:00
Yann Leboulanger 612716e2db change copyright from "Gajim Team" to real people 2005-12-09 23:30:28 +00:00
Yann Leboulanger cae7ce3bac "Gajim Team" in all hearders become "Contributors for this file" 2005-12-09 17:15:30 +00:00
Yann Leboulanger 34255e5682 Vincent left us a long time ago 2005-12-07 23:09:10 +00:00
Yann Leboulanger 637c903d68 * when in common, no need to do from common import FOO, just import FOO
* we now migrate automaticaly at startup in a thread
 * progressDialog now scroll textvew to the end
2005-12-05 11:13:08 +00:00
Yann Leboulanger 51dc8afb09 take into account only the accounts that are synced with global status to compute the global status (for status combobox) 2005-12-02 19:12:21 +00:00
Nikos Kouremenos d9cc33cf26 log system rewrite to use sqlite database instead of plain ascii files. this allows us to scale better (be faster), provide search in history, and save logs for JIDs that are non-ASCII. PLEASE read http://trac.gajim.org/wiki/MigrateLogToDot9DB 2005-11-23 19:12:52 +00:00
Nikos Kouremenos 0c09ad2b30 some more strings for transl 2005-11-22 11:44:33 +00:00
Nikos Kouremenos 68b0f18402 iso15 is our last chance 2005-11-18 13:26:24 +00:00
Nikos Kouremenos 2a791af792 decode_string() 2005-11-18 12:17:50 +00:00
Yann Leboulanger 380bce1160 fix TB 2005-11-12 21:06:26 +00:00
Nikos Kouremenos de7b906254 typo 2005-11-12 21:01:52 +00:00
Nikos Kouremenos 3f7bbf191f typo 2005-11-12 21:01:17 +00:00
Yann Leboulanger a67d009497 fix icon in tooltip (sorry I can't test) 2005-11-12 20:07:46 +00:00
Nikos Kouremenos 2a770a1ebf he --> he or she 2005-11-12 14:17:27 +00:00
Yann Leboulanger 8eaa1f45ad add a 'merged account' row with a context menu 2005-11-09 07:00:46 +00:00
Yann Leboulanger 164973ff82 prevent to print chatstate = 'None' 2005-11-05 20:49:28 +00:00