changeset f6f16e7e3737 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=f6f16e7e3737
description: [louizatakk] fix bash completion patch. Fixes #5328
diffstat:
src/groupchat_control.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 8de463f88280 -r f6f16e7e3737 src/groupchat_control.py
--- a/src/groupchat_control.py Fri Oct 16 19:51:29 2009 +0200
+++ b/src/groupchat_control.py Sat Oct 17 10:18:11 2009 +0200
@@ -1848,7 +1848,7 @@
# have to accomodate for the added space from last
# completion
start_iter.backward_chars(len(begin) + 2)
- elif self.last_key_tabs:
+ elif self.last_key_tabs and not gajim.config.get('shell_like_completion'):
# have to accomodate for the added space from last
# completion
start_iter.backward_chars(len(begin) + 1)
@@ -1871,7 +1871,7 @@
end = True
cur = cur[:-1]
completion = cur
- add = "" # if nick is not complete, don't but any comma or so
+ add = "" # if nick is not complete, don't add anything
message_buffer.insert_at_cursor(completion + add)
self.last_key_tabs = True
return True
changeset 4312affab769 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=4312affab769
description: Fixes an indentation error aswell as the previous commit
diffstat:
src/chat_control.py | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
diffs (59 lines):
diff -r 55e126c5394e -r 4312affab769 src/chat_control.py
--- a/src/chat_control.py Fri Oct 16 19:36:55 2009 +0200
+++ b/src/chat_control.py Fri Oct 16 20:21:42 2009 +0200
@@ -1600,6 +1600,12 @@
if state in states:
self.audio_state = states[state]
+ # Destroy existing session with the user when he signs off
+ # We need to do that before modifying the sid
+ if state == 'not_available':
+ gajim.connections[self.account].delete_jingle_session(
+ self.contact.get_full_jid(), self.audio_sid)
+
if state in ('not_available', 'available', 'stop'):
self.audio_sid = None
if state in ('connection_received', 'connecting'):
@@ -1610,16 +1616,11 @@
elif state in ('not_available', 'stop'):
self._audio_button.set_active(False)
- # Destroy existing session with the user when he signs off
- if state == 'not_available':
- gajim.connections[self.account].delete_jingle_session(
- self.contact.get_full_jid(), self.audio_sid)
-
self.update_audio()
def set_video_state(self, state, sid=None, reason=None):
#TODO: Share code with set_audio_state?
- if state in ('connecting', 'connected', 'stop'):
+ if state in ('connecting', 'connected', 'stop'):
str = _('Video state : %s') % state
if reason:
str += ', ' + _('reason: %s') % reason
@@ -1636,6 +1637,12 @@
if state in states:
self.video_state = states[state]
+ # Destroy existing session with the user when he signs off
+ # We need to do that before modifying the sid
+ if state == 'not_available':
+ gajim.connections[self.account].delete_jingle_session(
+ self.contact.get_full_jid(), self.video_sid)
+
if state in ('not_available', 'available', 'stop'):
self.video_sid = None
if state in ('connection_received', 'connecting'):
@@ -1646,11 +1653,6 @@
elif state in ('not_available', 'stop'):
self._video_button.set_active(False)
- # Destroy existing session with the user when he signs off
- if state == 'not_available':
- gajim.connections[self.account].delete_jingle_session(
- self.contact.get_full_jid(), self.video_sid)
-
self.update_video()
def on_avatar_eventbox_enter_notify_event(self, widget, event):