Fixed focus bugs
This commit is contained in:
parent
dc39d0783e
commit
ec4866b1ab
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -2,6 +2,7 @@ mintmenu (5.0.5) julia; urgency=low
|
||||
|
||||
* Multi-threaded search
|
||||
* Multiple keywords search
|
||||
* Fixed grab focus bugs
|
||||
|
||||
-- Clement Lefebvre <root@linuxmint.com> Sun, 12 Sep 2010 12:21:00 +0000
|
||||
|
||||
|
@ -910,6 +910,7 @@ class pluginclass( object ):
|
||||
mTree.get_widget("favoritesMenu").show_all()
|
||||
|
||||
mTree.get_widget( "favoritesMenu" ).popup( None, None, None, ev.button, ev.time )
|
||||
self.mintMenuWin.grab()
|
||||
|
||||
else:
|
||||
mTree = gtk.glade.XML( self.gladefile, "favoritesMenuExtra" )
|
||||
@ -926,6 +927,7 @@ class pluginclass( object ):
|
||||
insertSpaceMenuItem.connect( "activate", self.onFavoritesInsertSpace, widget, insertBefore )
|
||||
insertSeparatorMenuItem.connect( "activate", self.onFavoritesInsertSeparator, widget, insertBefore )
|
||||
mTree.get_widget( "favoritesMenuExtra" ).popup( None, None, None, ev.button, ev.time )
|
||||
self.mintMenuWin.grab()
|
||||
|
||||
def menuPopup( self, widget, event ):
|
||||
if event.button == 3:
|
||||
@ -988,6 +990,7 @@ class pluginclass( object ):
|
||||
startupMenuItem.connect( "toggled", self.onAddToStartup, widget )
|
||||
|
||||
mTree.get_widget( "applicationsMenu" ).popup( None, None, None, event.button, event.time )
|
||||
self.mintMenuWin.grab()
|
||||
|
||||
def searchPopup( self, widget=None, event=None ):
|
||||
menu = gtk.Menu()
|
||||
@ -1067,6 +1070,7 @@ class pluginclass( object ):
|
||||
#menu.attach_to_widget(self.searchButton, None)
|
||||
#menu.reposition()
|
||||
#menu.reposition()
|
||||
self.mintMenuWin.grab()
|
||||
self.focusSearchEntry()
|
||||
|
||||
def pos_func(self, menu=None):
|
||||
|
@ -209,6 +209,8 @@ class pluginclass( object ):
|
||||
trashMenu.show_all()
|
||||
emptyTrashMenuItem.connect ( "activate", self.emptyTrash, widget )
|
||||
trashMenu.popup( None, None, None, event.button, event.time )
|
||||
self.mintMenuWin.grab()
|
||||
|
||||
|
||||
def emptyTrash( self, menu, widget):
|
||||
os.system("rm -rf " + home + "/.local/share/Trash/info/*")
|
||||
@ -231,4 +233,3 @@ class pluginclass( object ):
|
||||
if (int(infoFiles) > 0):
|
||||
iconName = "user-trash-full"
|
||||
self.trashButton.setIcon(iconName)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user