changeset 7ed0b34c4945 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=7ed0b34c4945 description: hide invite contacts buttons in zeroconf chat controls. Fixes #7188
diffstat:
src/chat_control.py | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r a6ff4ecd0114 -r 7ed0b34c4945 src/chat_control.py --- a/src/chat_control.py Sat Aug 04 10:51:02 2012 +0200 +++ b/src/chat_control.py Sat Aug 04 17:14:34 2012 +0200 @@ -1744,10 +1744,14 @@ "him or her a file."))
# Convert to GC - if self.contact.supports(NS_MUC): - self._convert_to_gc_button.set_sensitive(True) + if gajim.config.get_per('accounts', self.account, 'is_zeroconf'): + self._convert_to_gc_button.set_no_show_all(True) + self._convert_to_gc_button.hide() else: - self._convert_to_gc_button.set_sensitive(False) + if self.contact.supports(NS_MUC): + self._convert_to_gc_button.set_sensitive(True) + else: + self._convert_to_gc_button.set_sensitive(False)
# Information if gajim.account_is_disconnected(self.account):