Commit 390cea6c authored by roidelapluie's avatar roidelapluie

enable clearing search with the icon

parent 1493a790
......@@ -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 @@ def on_roster_filter_entry_changed(self, widget):
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 """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment