Fixed focus and space problems in search entry

This commit is contained in:
Clement Lefebvre 2010-09-07 18:44:06 +01:00
parent cef9eec7cd
commit 9fee409db4
2 changed files with 9 additions and 2 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
mintmenu (5.0.2) julia; urgency=low
* Fixed space chars in computer search
* Fixed focus problems with search entry and search menu
-- Clement Lefebvre <root@linuxmint.com> Tue, 07 Sep 2010 18:28:00 +0000
mintmenu (5.0.1) julia; urgency=low mintmenu (5.0.1) julia; urgency=low
* Added search engines to mintMenu * Added search engines to mintMenu

View File

@ -962,6 +962,7 @@ class pluginclass( object ):
#menu.attach_to_widget(self.searchButton, None) #menu.attach_to_widget(self.searchButton, None)
#menu.reposition() #menu.reposition()
#menu.reposition() #menu.reposition()
self.focusSearchEntry()
def pos_func(self, menu=None): def pos_func(self, menu=None):
rect = self.searchButton.get_allocation() rect = self.searchButton.get_allocation()
@ -1176,8 +1177,7 @@ class pluginclass( object ):
if text != "": if text != "":
self.mintMenuWin.hide() self.mintMenuWin.hide()
fullstring = self.searchtool.replace( "%s", text ) fullstring = self.searchtool.replace( "%s", text )
newstring = fullstring.split() os.system(fullstring + " &")
Execute( newstring )
def SearchWithButton( self, widget, event ): def SearchWithButton( self, widget, event ):
self.Search( widget ) self.Search( widget )