Solves app and category buttons focus issues
The buttons were grabbing the focus out of the search entry on hover, inducing strange behaviour. Fixes #23
This commit is contained in:
parent
0feb06e795
commit
24519ad233
@ -878,9 +878,6 @@ class pluginclass( object ):
|
||||
i.released()
|
||||
i.set_relief( Gtk.ReliefStyle.NONE )
|
||||
widget.set_relief( Gtk.ReliefStyle.HALF )
|
||||
widget.grab_focus()
|
||||
|
||||
self.searchEntry.set_text( "" )
|
||||
|
||||
self.applicationsScrolledWindow.get_vadjustment().set_value( 0 )
|
||||
|
||||
@ -1121,7 +1118,6 @@ class pluginclass( object ):
|
||||
#menu.reposition()
|
||||
#self.mintMenuWin.grab()
|
||||
menu.connect( 'deactivate', self.onMenuPopupDeactivate)
|
||||
self.focusSearchEntry()
|
||||
return True
|
||||
|
||||
def pos_func(self, menu=None):
|
||||
|
@ -283,7 +283,6 @@ class ApplicationLauncher( easyButton ):
|
||||
|
||||
self.connectSelf( "focus-in-event", self.onFocusIn )
|
||||
self.connectSelf( "focus-out-event", self.onFocusOut )
|
||||
self.connectSelf( "enter-notify-event", self.onEnterNotify )
|
||||
self.connectSelf( "clicked", self.execute )
|
||||
|
||||
|
||||
@ -332,9 +331,6 @@ class ApplicationLauncher( easyButton ):
|
||||
def onFocusOut( self, widget, event ):
|
||||
self.set_relief( Gtk.ReliefStyle.NONE )
|
||||
|
||||
def onEnterNotify( self, widget, event ):
|
||||
self.grab_focus()
|
||||
|
||||
def setupLabels( self ):
|
||||
self.addLabel( self.appName )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user