Correction of previous commit - clear when clicked
Now category buttons only clear text when clicked, not when hovered. It seems more natural, because a now the mouse position is irrelevant when trying to type on the search entry.
This commit is contained in:
parent
24519ad233
commit
2353f958d3
@ -881,6 +881,10 @@ class pluginclass( object ):
|
||||
|
||||
self.applicationsScrolledWindow.get_vadjustment().set_value( 0 )
|
||||
|
||||
def FilterAndClear( self, widget, category = None ):
|
||||
self.searchEntry.set_text( "" )
|
||||
self.Filter( widget, category )
|
||||
|
||||
# Forward all text to the search box
|
||||
def keyPress( self, widget, event ):
|
||||
if event.string.strip() != "" or event.keyval == Gdk.KEY_BackSpace:
|
||||
@ -1673,7 +1677,7 @@ class pluginclass( object ):
|
||||
else:
|
||||
item["button"].mouseOverHandlerIds = None
|
||||
|
||||
item["button"].connect( "clicked", self.Filter, item["filter"] )
|
||||
item["button"].connect( "clicked", self.FilterAndClear, item["filter"] )
|
||||
item["button"].connect( "focus-in-event", self.categoryBtnFocus, item["filter"] )
|
||||
item["button"].show()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user