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:
hordepfo 2014-01-22 02:30:26 +00:00
parent 0feb06e795
commit 24519ad233
2 changed files with 0 additions and 8 deletions

View File

@ -878,9 +878,6 @@ class pluginclass( object ):
i.released() i.released()
i.set_relief( Gtk.ReliefStyle.NONE ) i.set_relief( Gtk.ReliefStyle.NONE )
widget.set_relief( Gtk.ReliefStyle.HALF ) widget.set_relief( Gtk.ReliefStyle.HALF )
widget.grab_focus()
self.searchEntry.set_text( "" )
self.applicationsScrolledWindow.get_vadjustment().set_value( 0 ) self.applicationsScrolledWindow.get_vadjustment().set_value( 0 )
@ -1121,7 +1118,6 @@ class pluginclass( object ):
#menu.reposition() #menu.reposition()
#self.mintMenuWin.grab() #self.mintMenuWin.grab()
menu.connect( 'deactivate', self.onMenuPopupDeactivate) menu.connect( 'deactivate', self.onMenuPopupDeactivate)
self.focusSearchEntry()
return True return True
def pos_func(self, menu=None): def pos_func(self, menu=None):

View File

@ -283,7 +283,6 @@ class ApplicationLauncher( easyButton ):
self.connectSelf( "focus-in-event", self.onFocusIn ) self.connectSelf( "focus-in-event", self.onFocusIn )
self.connectSelf( "focus-out-event", self.onFocusOut ) self.connectSelf( "focus-out-event", self.onFocusOut )
self.connectSelf( "enter-notify-event", self.onEnterNotify )
self.connectSelf( "clicked", self.execute ) self.connectSelf( "clicked", self.execute )
@ -332,9 +331,6 @@ class ApplicationLauncher( easyButton ):
def onFocusOut( self, widget, event ): def onFocusOut( self, widget, event ):
self.set_relief( Gtk.ReliefStyle.NONE ) self.set_relief( Gtk.ReliefStyle.NONE )
def onEnterNotify( self, widget, event ):
self.grab_focus()
def setupLabels( self ): def setupLabels( self ):
self.addLabel( self.appName ) self.addLabel( self.appName )