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
Nikos Kouremenos
8d26752f48
fix strings, add code for progressbar to work, fix a bit of ui
2005-11-05 11:28:19 +00:00
Yann Leboulanger
f130ce29c0
we now stringprep jid and resource everywhere:
...
when we recieve a jid from server
when we enter a jid or resource in GUI
2005-11-03 14:46:56 +00:00
Yann Leboulanger
b4d9a6aab0
new helpers.check_paths() function that creates LOGPATH and VCARDPATH
2005-10-30 11:20:24 +00:00
Nikos Kouremenos
69fc11d949
optimize
2005-10-26 17:30:52 +00:00
Nikos Kouremenos
f430c3581f
ask uname as our last chance to detect OS [thanks kael for command]
2005-10-25 08:39:41 +00:00
Nikos Kouremenos
cf18d99555
add comment
2005-10-09 16:45:21 +00:00
Nikos Kouremenos
c5f90e9bc6
get_uf_show can return strings with mnemonics
2005-10-09 16:08:18 +00:00
Yann Leboulanger
8f3dafa920
account context menu and systary context menu now contain a change status message item
...
TODO:
global status combobox need it
2005-10-09 14:49:14 +00:00
Yann Leboulanger
a8117faf2d
[gjc] "interrupt system call" are now handled and cause the function to be retried
2005-09-28 15:00:01 +00:00
Nikos Kouremenos
ceb71387f5
add a comment
2005-09-13 11:05:16 +00:00
Yann Leboulanger
606b14a862
sound for windows now works
2005-09-13 10:51:02 +00:00
Nikos Kouremenos
74cc23031c
if sound is beep then we beep in speaker
2005-09-11 20:33:10 +00:00
Nikos Kouremenos
0709dec1c0
fix comment
2005-09-08 21:01:15 +00:00
Yann Leboulanger
72393ac068
autoreconnect of account is ready
2005-09-05 13:28:09 +00:00
Nikos Kouremenos
1a1ec7bfa2
typo
2005-08-26 12:14:08 +00:00
Nikos Kouremenos
b5c71cd2f2
ensure_unicode_string is back
2005-08-26 12:08:14 +00:00
Nikos Kouremenos
cec336112d
[Stéphan K.] make most strings we use unicode instacnes
2005-08-26 00:52:44 +00:00
Nikos Kouremenos
3d7be5a2dc
typo
2005-08-24 14:09:03 +00:00
Nikos Kouremenos
a16d8f84e6
fix i18n to gc tooltips
2005-08-24 14:08:35 +00:00
Nikos Kouremenos
0455ce1e3f
typo
2005-08-18 19:25:12 +00:00
Nikos Kouremenos
bd0a5230d9
xs:boolean is '0', '1', 'true', 'false'. so update bookmark to handle the last two
2005-08-18 19:06:24 +00:00
Nikos Kouremenos
7c2e69cf8b
dnd now works in windows too
2005-08-16 22:38:21 +00:00
Nikos Kouremenos
f9d3d37c46
escape " in sound playing
2005-08-14 19:27:58 +00:00
Nikos Kouremenos
56e0c6f3c3
drop from xffm to gajim tab now works
2005-08-14 19:08:56 +00:00
Dimitur Kirov
332bffc29f
changed Q__ to Q_
2005-08-14 13:46:15 +00:00
Nikos Kouremenos
a91765990b
comments for translators; pot/po
2005-08-13 11:17:49 +00:00
Nikos Kouremenos
e641745500
using comments and Q_() for make disctioning of None and Unknown strings. this breaks strings freeze but I hope it is for the good and I hope it is the last time [sorry ppl]
2005-08-12 22:32:35 +00:00