Merge pull request #120 from monsta/patch-1

removed unused and confusing argument
This commit is contained in:
Clement Lefebvre 2015-02-24 13:14:32 +00:00
commit a2df76ed28

View File

@ -455,7 +455,7 @@ class MainWindow( object ):
self.plugins["applications"].changeTab(0)
self.plugins["applications"].focusSearchEntry()
def hide( self, forceHide = False ):
def hide( self ):
for plugin in self.plugins.values():
if hasattr( plugin, "onHideMenu" ):
plugin.onHideMenu()
@ -752,11 +752,11 @@ class MenuWin( object ):
self.create_menu()
# allow middle click and drag
elif event.button == 2:
self.mainwin.hide( True )
self.mainwin.hide()
def toggleMenu( self ):
if self.applet.state & Gtk.StateType.SELECTED:
self.mainwin.hide( True )
self.mainwin.hide()
else:
self.positionMenu()
self.mainwin.show()