changeset 52a0e3568292 in /home/hg/repos/gajim
branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=52a0e3568292 description: Auto clear/hide search when open a chat. Fixes #7423
diffstat:
src/roster_window.py | 10 +++++++--- 1 файлов изменено, 7 вставок(+), 3 удалений(-)
различия (41 строк):
diff -r 4b6e3a609a70 -r 52a0e3568292 src/roster_window.py --- a/src/roster_window.py Sun Aug 11 18:57:02 2013 +0400 +++ b/src/roster_window.py Mon Aug 12 10:45:51 2013 +0400 @@ -320,7 +320,7 @@ return iter_group
def _add_entity(self, contact, account, groups=None, - big_brother_contact=None, big_brother_account=None): + big_brother_contact=None, big_brother_account=None): """ Add the given contact to roster data model
@@ -1140,7 +1140,8 @@ self.draw_contact(parent_jid, parent_account) 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 """ @@ -3439,7 +3440,8 @@ num = gtk.gdk.keyval_to_unicode(event.keyval) 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.rfilter_entry.emit('key_press_event', event)
@@ -4112,6 +4114,8 @@ """ When an iter is double clicked: open the first event window """ + if self.rfilter_enabled: + self.disable_rfilter() if not gajim.single_click: self.on_row_activated(widget, path)