Merge pull request #82 from monsta/dont-hide-on-trash-popup
Don't hide mintMenu on "Empty trash" popup
This commit is contained in:
commit
38f3cc5bec
@ -263,8 +263,8 @@ class pluginclass( object ):
|
|||||||
trashMenu.append(emptyTrashMenuItem)
|
trashMenu.append(emptyTrashMenuItem)
|
||||||
trashMenu.show_all()
|
trashMenu.show_all()
|
||||||
emptyTrashMenuItem.connect ( "activate", self.emptyTrash, widget )
|
emptyTrashMenuItem.connect ( "activate", self.emptyTrash, widget )
|
||||||
|
self.mintMenuWin.stopHiding()
|
||||||
gtk.gtk_menu_popup(hash(trashMenu), None, None, None, None, 3, 0)
|
gtk.gtk_menu_popup(hash(trashMenu), None, None, None, None, 3, 0)
|
||||||
self.mintMenuWin.grab()
|
|
||||||
|
|
||||||
def emptyTrash( self, menu, widget):
|
def emptyTrash( self, menu, widget):
|
||||||
os.system("rm -rf " + home + "/.local/share/Trash/info/*")
|
os.system("rm -rf " + home + "/.local/share/Trash/info/*")
|
||||||
|
Loading…
Reference in New Issue
Block a user