changeset 05332cbe3388 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=05332cbe3388
description: test_ft_proxies_on_startup is a per_account option
diffstat:
src/common/config.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r f58419147bf8 -r 05332cbe3388 src/common/config.py
--- a/src/common/config.py Sun Oct 23 20:26:28 2011 +0200
+++ b/src/common/config.py Sun Oct 23 21:06:25 2011 +0200
@@ -290,7 +290,6 @@
'use_stun_server': [opt_bool, False, _('If True, Gajim will try to use a STUN server when using jingle. The one in "stun_server" option, or the one given by the jabber server.')],
'stun_server': [opt_str, '', _('STUN server to use when using jingle')],
'show_affiliation_in_groupchat': [opt_bool, True, _('If True, Gajim will show affiliation of groupchat occupants by adding a colored square to the status icon')],
- 'test_ft_proxies_on_startup': [opt_bool, True, _('If True, Gajim will test file transfer proxies on startup to be sure it works. Openfire\'s proxies are known to fail this test even if they work.')],
}
__options_per_key = {
@@ -351,6 +350,7 @@
# proxy65 for FT
'file_transfer_proxies': [opt_str, 'proxy.eu.jabber.org, proxy.jabber.ru, proxy.jabbim.cz'],
'use_ft_proxies': [opt_bool, True, _('If checked, Gajim will use your IP and proxies defined in file_transfer_proxies option for file transfer.'), True],
+ 'test_ft_proxies_on_startup': [opt_bool, True, _('If True, Gajim will test file transfer proxies on startup to be sure it works. Openfire\'s proxies are known to fail this test even if they work.')],
'msgwin-x-position': [opt_int, -1], # Default is to let the wm decide
'msgwin-y-position': [opt_int, -1], # Default is to let the wm decide
'msgwin-width': [opt_int, 480],
changeset 49b3bd055081 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=49b3bd055081
description: remove old unused function
diffstat:
src/common/connection_handlers.py | 49 ---------------------------------------
1 files changed, 0 insertions(+), 49 deletions(-)
diffs (59 lines):
diff -r 05332cbe3388 -r 49b3bd055081 src/common/connection_handlers.py
--- a/src/common/connection_handlers.py Sun Oct 23 21:06:25 2011 +0200
+++ b/src/common/connection_handlers.py Sun Oct 30 13:26:41 2011 +0100
@@ -1674,55 +1674,6 @@
self.connection.SendAndCallForResponse(iq, self._on_bob_received,
{'cid': cid})
- # process and dispatch a groupchat message
- def dispatch_gc_message(self, msg, frm, msgtxt, jid, tim):
- has_timestamp = bool(msg.timestamp)
-
- statusCode = msg.getStatusCode()
-
- displaymarking = None
- seclabel = msg.getTag('securitylabel')
- if seclabel and seclabel.getNamespace() == common.xmpp.NS_SECLABEL:
- # Ignore message from room in which we are not
- displaymarking = seclabel.getTag('displaymarking')
-
- if jid not in self.last_history_time:
- return
-
- captcha = msg.getTag('captcha', namespace=common.xmpp.NS_CAPTCHA)
- if captcha:
- captcha = captcha.getTag('x', namespace=common.xmpp.NS_DATA)
- found = helpers.replace_dataform_media(captcha, msg)
- if not found:
- self.get_bob_data(uri_data, frm, self.dispatch_gc_message,
- [msg, frm, msgtxt, jid, tim], 0)
- return
- self.dispatch('GC_MSG', (frm, msgtxt, tim, has_timestamp,
- msg.getXHTML(), statusCode, displaymarking, captcha))
-
- tim_int = int(float(mktime(tim)))
- if gajim.config.should_log(self.name, jid) and not \
- tim_int <= self.last_history_time[jid] and msgtxt and frm.find('/') >= 0:
- # if frm.find('/') < 0, it means message comes from room itself
- # usually it hold description and can be send at each connection
- # so don't store it in logs
- try:
- gajim.logger.write('gc_msg', frm, msgtxt, tim=tim)
- # store in memory time of last message logged.
- # this will also be saved in rooms_last_message_time table
- # when we quit this muc
- self.last_history_time[jid] = mktime(tim)
-
- except exceptions.PysqliteOperationalError, e:
- self.dispatch('DB_ERROR', (_('Disk Write Error'), str(e)))
- except exceptions.DatabaseMalformed:
- pritext = _('Database Error')
- sectext = _('The database file (%s) cannot be read. Try to '
- 'repair it (see http://trac.gajim.org/wiki/DatabaseBackup) '
- 'or remove it (all history will be lost).') % \
- common.logger.LOG_DB_PATH
- self.dispatch('DB_ERROR', (pritext, sectext))
-
def _presenceCB(self, con, prs):
"""
Called when we receive a presence
changeset c6104c524b86 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=c6104c524b86
description: remove buttons from infobar just before adding new instead of when hidding infobar
diffstat:
src/chat_control.py | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r c08418f0aeec -r c6104c524b86 src/chat_control.py
--- a/src/chat_control.py Mon Oct 17 17:55:43 2011 +0200
+++ b/src/chat_control.py Mon Oct 17 18:00:27 2011 +0200
@@ -3199,8 +3199,16 @@
return
markup, buttons, args, type_ = self.info_bar_queue[0]
self.info_bar_label.set_markup(markup)
+
+ # Remove old buttons
+ area = self.info_bar.get_action_area()
+ for b in area.get_children():
+ area.remove(b)
+
+ # Add new buttons
for button in buttons:
self.info_bar.add_action_widget(button, 0)
+
self.info_bar.set_message_type(type_)
self.info_bar.set_no_show_all(False)
self.info_bar.show_all()
@@ -3318,9 +3326,6 @@
self.info_bar_queue.remove(ib_msg)
if i == 0:
# We are removing the one currently displayed
- area = self.info_bar.get_action_area()
- for b in area.get_children():
- area.remove(b)
self.info_bar.hide()
# show next one?
gobject.idle_add(self._info_bar_show_message)