summaryrefslogtreecommitdiffstats
path: root/Operations.hs
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-09-28 07:18:58 +0200
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-09-28 07:18:58 +0200
commit5dd3a069ecc5e8f03fb7089cf273e489fbdef3cf (patch)
treea70a7e4f9c3403cbadd472768a500062ec9c95bf /Operations.hs
parent97d8dc7ccd82389289efe93b53712467ff620b1a (diff)
downloadmetatile-5dd3a069ecc5e8f03fb7089cf273e489fbdef3cf.tar
metatile-5dd3a069ecc5e8f03fb7089cf273e489fbdef3cf.zip
LayoutSelection: describe the active layout only
darcs-hash:20070928051858-a5988-bebb34f737f554e027dc31ab5305c69189b897ba
Diffstat (limited to 'Operations.hs')
-rw-r--r--Operations.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Operations.hs b/Operations.hs
index ab585c7..ec93cca 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -386,6 +386,9 @@ instance ReadableSomeLayout a => Layout LayoutSelection a where
return $ (\l' -> LayoutSelection (l':ls)) `fmap` ml'
-- Unless there is no layout...
handleMessage (LayoutSelection []) _ = return Nothing
+
+ description (LayoutSelection (x:_)) = description x
+ description _ = "default"
--
-- Builtin layout algorithms:
--