enable clearing search with the icon
This commit is contained in:
parent
1493a7909c
commit
390cea6c56
|
@ -352,7 +352,6 @@
|
|||
<property name="primary_icon_activatable">True</property>
|
||||
<signal name="changed" handler="on_roster_filter_entry_changed"/>
|
||||
<signal name="icon_press" handler="on_roster_filter_entry_icon_press"/>
|
||||
<signal name="key_press_event" handler="on_roster_filter_entry_key_press_event"/>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
|
|
|
@ -4176,11 +4176,11 @@ class RosterWindow:
|
|||
self.search_enabled = True
|
||||
self.refilter_shown_roster_items()
|
||||
|
||||
def on_roster_filter_entry_icon_press(self, widget):
|
||||
pass
|
||||
|
||||
def on_roster_filter_entry_key_press_event(self, widget):
|
||||
pass
|
||||
def on_roster_filter_entry_icon_press(self, widget, icon, event):
|
||||
""" Disable the roster filtering by clicking the icon in the textEntry """
|
||||
self.xml.get_object('show_roster_filter_menuitem').set_active(False)
|
||||
self.search_enabled = False
|
||||
self.refilter_shown_roster_items()
|
||||
|
||||
def on_show_roster_filter_menuitem_toggled(self, widget):
|
||||
""" Show the roster filter entry """
|
||||
|
|
Loading…
Reference in New Issue