Auto clear/hide search when open a chat. Fixes #7423

This commit is contained in:
Denis Fomin 2013-08-12 10:45:51 +04:00
parent dc0a4365a2
commit 1790a0fafa
1 changed files with 7 additions and 3 deletions

View File

@ -1140,7 +1140,8 @@ class RosterWindow:
self.draw_contact(parent_jid, parent_account) self.draw_contact(parent_jid, parent_account)
return False return False
def draw_contact(self, jid, account, selected=False, focus=False, contact_instances=None, contact=None): def draw_contact(self, jid, account, selected=False, focus=False,
contact_instances=None, contact=None):
""" """
Draw the correct state image, name BUT not avatar Draw the correct state image, name BUT not avatar
""" """
@ -3439,7 +3440,8 @@ class RosterWindow:
num = gtk.gdk.keyval_to_unicode(event.keyval) num = gtk.gdk.keyval_to_unicode(event.keyval)
self.enable_rfilter(unichr(num)) self.enable_rfilter(unichr(num))
elif event.state & gtk.gdk.CONTROL_MASK and event.state & gtk.gdk.SHIFT_MASK and event.keyval == gtk.keysyms.U: elif event.state & gtk.gdk.CONTROL_MASK and \
event.state & gtk.gdk.SHIFT_MASK and event.keyval == gtk.keysyms.U:
self.enable_rfilter('') self.enable_rfilter('')
self.rfilter_entry.emit('key_press_event', event) self.rfilter_entry.emit('key_press_event', event)
@ -4112,6 +4114,8 @@ class RosterWindow:
""" """
When an iter is double clicked: open the first event window When an iter is double clicked: open the first event window
""" """
if self.rfilter_enabled:
self.disable_rfilter()
if not gajim.single_click: if not gajim.single_click:
self.on_row_activated(widget, path) self.on_row_activated(widget, path)