Add emptyLayout to LayoutClass, a method to be called when a workspace is empty

This commit is contained in:
Andrea Rossato
2008-01-24 01:32:07 +00:00
parent 66f623b656
commit 10be8aaae0
2 changed files with 9 additions and 1 deletions

View File

@@ -54,6 +54,9 @@ instance (LayoutClass l a, LayoutClass r a) => LayoutClass (Choose l r) a where
doLayout (SLeft r l) = (fmap (second . fmap $ SLeft r) .) . doLayout l
doLayout (SRight l r) = (fmap (second . fmap $ SRight l) .) . doLayout r
emptyLayout (SLeft r l) = (fmap (second . fmap $ SLeft r) .) $ emptyLayout l
emptyLayout (SRight l r) = (fmap (second . fmap $ SRight l) .) $ emptyLayout r
description (SLeft _ l) = description l
description (SRight _ r) = description r