changeset c47219e5a552 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=c47219e5a552
description: correctly decode strings from treeview. Fixes #5996
diffstat:
src/history_manager.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 1f386a858d48 -r c47219e5a552 src/history_manager.py
--- a/src/history_manager.py Mon Oct 25 11:23:10 2010 +0200
+++ b/src/history_manager.py Mon Oct 25 20:09:30 2010 +0200
@@ -279,7 +279,7 @@
path = rowref.get_path()
if path is None:
continue
- jid = liststore[path][0] # jid
+ jid = liststore[path][0].decode('utf-8') # jid
self._fill_logs_listview(jid)
def _get_jid_id(self, jid):
@@ -625,7 +625,7 @@
def on_search_results_listview_row_activated(self, widget, path, column):
# get log_line_id, jid_id from row we double clicked
log_line_id = self.search_results_liststore[path][0]
- jid = self.search_results_liststore[path][1]
+ jid = self.search_results_liststore[path][1].decode('utf-8')
# make it string as in gtk liststores I have them all as strings
# as this is what db returns so I don't have to fight with types
jid_id = self._get_jid_id(jid)
changeset 53e49988f563 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=53e49988f563
description: correctly clean groupchat_jids when we get an empty vcard.
diffstat:
src/common/connection_handlers.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 8dfb09dc9387 -r 53e49988f563 src/common/connection_handlers.py
--- a/src/common/connection_handlers.py Fri Oct 22 22:22:47 2010 +0200
+++ b/src/common/connection_handlers.py Sun Oct 24 15:32:38 2010 +0200
@@ -602,7 +602,11 @@
# We do as if it comes from the fake_jid
frm = groupchat_jid
our_jid = gajim.get_jid_from_account(self.name)
- if not iq_obj.getTag('vCard') or iq_obj.getType() == 'error':
+ if (not iq_obj.getTag('vCard') and iq_obj.getType() == 'result') or\
+ iq_obj.getType() == 'error':
+ if id_ in self.groupchat_jids:
+ frm = self.groupchat_jids[id_]
+ del self.groupchat_jids[id_]
if frm and frm != our_jid:
# Write an empty file
self._save_vcard_to_hd(frm, '')
changeset 15db3c1d792b in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=15db3c1d792b
description: [Kaini] fix start chat menuitem with zeroconf account
diffstat:
src/roster_window.py | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r 0f64fdfb45ce -r 15db3c1d792b src/roster_window.py
--- a/src/roster_window.py Tue Oct 19 21:43:09 2010 +0200
+++ b/src/roster_window.py Thu Oct 21 19:49:58 2010 +0200
@@ -4823,12 +4823,15 @@
# items that get shown whether an account is zeroconf or not
accounts_list = sorted(gajim.contacts.get_accounts())
- if connected_accounts > 1: # 2 or more accounts? make submenus
+ if connected_accounts > 2 or \
+ (connected_accounts > 1 and not gajim.zeroconf_is_connected()):
+ # 2 or more "real" (no zeroconf) accounts? make submenus
new_chat_sub_menu = gtk.Menu()
for account in accounts_list:
- if gajim.connections[account].connected <= 1:
- # if offline or connecting
+ if gajim.connections[account].connected <= 1 or \
+ gajim.config.get_per('accounts', account, 'is_zeroconf'):
+ # if offline or connecting or zeroconf
continue
# new chat
@@ -4956,8 +4959,9 @@
for account in gajim.connections:
if gajim.account_is_connected(account) and \
gajim.connections[account].is_zeroconf:
- for item in (join_gc_menuitem, add_new_contact_menuitem,
- service_disco_menuitem, single_message_menuitem):
+ for item in (new_chat_menuitem, join_gc_menuitem,
+ add_new_contact_menuitem, service_disco_menuitem,
+ single_message_menuitem):
item.set_sensitive(False)
# Manage GC bookmarks
changeset b5efb8187db5 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=b5efb8187db5
description: correctly clean groupchat_jids when we get an empty vcard.
diffstat:
src/common/connection_handlers.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 1ab5f2805c92 -r b5efb8187db5 src/common/connection_handlers.py
--- a/src/common/connection_handlers.py Fri Oct 22 22:22:47 2010 +0200
+++ b/src/common/connection_handlers.py Sun Oct 24 15:32:38 2010 +0200
@@ -629,7 +629,11 @@
# We do as if it comes from the fake_jid
frm = groupchat_jid
our_jid = gajim.get_jid_from_account(self.name)
- if not iq_obj.getTag('vCard') or iq_obj.getType() == 'error':
+ if (not iq_obj.getTag('vCard') and iq_obj.getType() == 'result') or\
+ iq_obj.getType() == 'error':
+ if id_ in self.groupchat_jids:
+ frm = self.groupchat_jids[id_]
+ del self.groupchat_jids[id_]
if frm and frm != our_jid:
# Write an empty file
self._save_vcard_to_hd(frm, '')
changeset da85ddd405c2 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=da85ddd405c2
description: [Kaini] fix start chat menuitem with zeroconf account
diffstat:
src/roster_window.py | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r cc570eefd2a4 -r da85ddd405c2 src/roster_window.py
--- a/src/roster_window.py Wed Oct 20 21:53:36 2010 +0200
+++ b/src/roster_window.py Thu Oct 21 19:49:58 2010 +0200
@@ -4863,12 +4863,15 @@
# items that get shown whether an account is zeroconf or not
accounts_list = sorted(gajim.contacts.get_accounts())
- if connected_accounts > 1: # 2 or more accounts? make submenus
+ if connected_accounts > 2 or \
+ (connected_accounts > 1 and not gajim.zeroconf_is_connected()):
+ # 2 or more "real" (no zeroconf) accounts? make submenus
new_chat_sub_menu = gtk.Menu()
for account in accounts_list:
- if gajim.connections[account].connected <= 1:
- # if offline or connecting
+ if gajim.connections[account].connected <= 1 or \
+ gajim.config.get_per('accounts', account, 'is_zeroconf'):
+ # if offline or connecting or zeroconf
continue
# new chat
@@ -4977,8 +4980,9 @@
for account in gajim.connections:
if gajim.account_is_connected(account) and \
gajim.connections[account].is_zeroconf:
- for item in (join_gc_menuitem, add_new_contact_menuitem,
- service_disco_menuitem, single_message_menuitem):
+ for item in (new_chat_menuitem, join_gc_menuitem,
+ add_new_contact_menuitem, service_disco_menuitem,
+ single_message_menuitem):
item.set_sensitive(False)
# Manage GC bookmarks