changeset c63b9caadd5b in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=c63b9caadd5b
description: correct position of the window while reading the new event by clicking on the tray icon
(restore window coordinates when it is the maximization of the system tray)
diffstat:
src/statusicon.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 3af4eeae878a -r c63b9caadd5b src/statusicon.py
--- a/src/statusicon.py Tue Jan 25 11:54:28 2011 +0100
+++ b/src/statusicon.py Thu Jan 27 19:10:15 2011 +0300
@@ -414,6 +414,11 @@
account, jid, event = gajim.events.get_first_systray_event()
if not event:
return
+ win = gajim.interface.roster.window
+ if not win.get_property('visible'):
+ gtkgui_helpers.move_window(win,
+ gajim.config.get('roster_x-position'),
+ gajim.config.get('roster_y-position'))
gajim.interface.handle_event(account, jid, event.type_)
def on_middle_click(self):
changeset b69aed0d9adc in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=b69aed0d9adc
description: add kwalletcli as optional dep in README. see #5153
diffstat:
README.html | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 4821e8886fa1 -r b69aed0d9adc README.html
--- a/README.html Sun Jan 23 11:31:29 2011 +0100
+++ b/README.html Mon Jan 24 09:31:54 2011 +0100
@@ -27,7 +27,8 @@
<li>For zeroconf (bonjour), the "enable link-local messaging" checkbox, you need dbus-glib, python-avahi</li>
<li>dnsutils (or whatever package provides the nslookup binary) for SRV support</li>
<li>gtkspell and aspell-LANG where lang is your locale eg. en, fr etc</li>
-<li>gnome-python-desktop (for GnomeKeyring support)</li>
+<li>gnome-python-desktop (for GnomeKeyring support as password storage)</li>
+<li>kwalletcli (for support of KDE Wallet as password storage)</li>
<li>notification-daemon or notify-python (and D-Bus) to get cooler popups</li>
<li>D-Bus running to have gajim-remote working. Some distributions split dbus-x11, which is needed for dbus to work with Gajim. Version >= 0.80 is required.</li>
<li>python-dbus bindings (>=0.81)</li>
changeset 4821e8886fa1 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=4821e8886fa1
description: use shutil.move instead of os.rename to move files. Fixes #6770
diffstat:
src/common/check_paths.py | 31 ++++++++++++++++---------------
1 files changed, 16 insertions(+), 15 deletions(-)
diffs (73 lines):
diff -r 7689773e3487 -r 4821e8886fa1 src/common/check_paths.py
--- a/src/common/check_paths.py Wed Jan 19 09:08:31 2011 +0100
+++ b/src/common/check_paths.py Sun Jan 23 11:31:29 2011 +0100
@@ -24,6 +24,7 @@
##
import os
+import shutil
import sys
import stat
@@ -248,13 +249,11 @@
if not os.path.exists(src):
continue
print 'moving %s to %s' % (src, dst)
- os.renames(src, dst)
+ shutil.move(src, dst)
gajim.logger.init_vars()
gajim.logger.attach_cache_database()
def check_and_possibly_create_paths():
- check_and_possibly_move_config()
-
LOG_DB_PATH = logger.LOG_DB_PATH
LOG_DB_FOLDER, LOG_DB_FILE = os.path.split(LOG_DB_PATH)
@@ -312,11 +311,10 @@
print _('Gajim will now exit')
sys.exit()
- if not os.path.exists(LOG_DB_PATH):
- create_log_db()
- gajim.logger.init_vars()
- elif os.path.isdir(LOG_DB_PATH):
- print _('%s is a directory but should be a file') % LOG_DB_PATH
+ if not os.path.exists(PLUGINS_CONFIG_PATH):
+ create_path(PLUGINS_CONFIG_PATH)
+ elif os.path.isfile(PLUGINS_CONFIG_PATH):
+ print _('%s is a file but it should be a directory') % PLUGINS_CONFIG_PATH
print _('Gajim will now exit')
sys.exit()
@@ -327,6 +325,16 @@
print _('Gajim will now exit')
sys.exit()
+ check_and_possibly_move_config()
+
+ if not os.path.exists(LOG_DB_PATH):
+ create_log_db()
+ gajim.logger.init_vars()
+ elif os.path.isdir(LOG_DB_PATH):
+ print _('%s is a directory but should be a file') % LOG_DB_PATH
+ print _('Gajim will now exit')
+ sys.exit()
+
if not os.path.exists(CACHE_DB_PATH):
create_cache_db()
gajim.logger.attach_cache_database()
@@ -335,13 +343,6 @@
print _('Gajim will now exit')
sys.exit()
- if not os.path.exists(PLUGINS_CONFIG_PATH):
- create_path(PLUGINS_CONFIG_PATH)
- elif os.path.isfile(PLUGINS_CONFIG_PATH):
- print _('%s is a file but it should be a directory') % PLUGINS_CONFIG_PATH
- print _('Gajim will now exit')
- sys.exit()
-
def create_path(directory):
head, tail = os.path.split(directory)
if not os.path.exists(head):
changeset 249a3ec50381 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=249a3ec50381
description: fix initializing a variable
diffstat:
src/common/helpers.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 29472b5ba6e0 -r 249a3ec50381 src/common/helpers.py
--- a/src/common/helpers.py Sun Jan 09 20:58:58 2011 +0100
+++ b/src/common/helpers.py Sun Jan 09 22:11:08 2011 +0100
@@ -1360,13 +1360,13 @@
def replace_dataform_media(form, stanza):
import xmpp
+ found = False
for field in form.getTags('field'):
for media in field.getTags('media'):
for uri in media.getTags('uri'):
uri_data = uri.getData()
if uri_data.startswith('cid:'):
uri_data = uri_data[4:]
- found = False
for data in stanza.getTags('data', namespace=xmpp.NS_BOB):
if data.getAttr('cid') == uri_data:
uri.setData(data.getData())