Merge pull request #82 from monsta/dont-hide-on-trash-popup

Don't hide mintMenu on "Empty trash" popup
This commit is contained in:
Clement Lefebvre 2014-04-02 12:26:24 +01:00
commit 38f3cc5bec

View File

@ -263,8 +263,8 @@ class pluginclass( object ):
trashMenu.append(emptyTrashMenuItem)
trashMenu.show_all()
emptyTrashMenuItem.connect ( "activate", self.emptyTrash, widget )
self.mintMenuWin.stopHiding()
gtk.gtk_menu_popup(hash(trashMenu), None, None, None, None, 3, 0)
self.mintMenuWin.grab()
def emptyTrash( self, menu, widget):
os.system("rm -rf " + home + "/.local/share/Trash/info/*")