# HG changeset patch # User Adam Chlipala # Date 1316893620 14400 # Node ID 554e342665fea2a73b66a6b5d8b46907eb78efb6 # Parent 3a303df9ae925f2fbdc40e54174600340438b893 Add a new parameter to Gui.gui diff -r 3a303df9ae92 -r 554e342665fe calendar.ur --- a/calendar.ur Fri Sep 23 13:30:01 2011 +0200 +++ b/calendar.ur Sat Sep 24 15:47:00 2011 -0400 @@ -207,7 +207,7 @@ SourceL.onChange ctl.Day f val gui_t = Gui.mkGui - (fn ctl => + (fn [body ~ []] ctl => ) diff -r 3a303df9ae92 -r 554e342665fe calendar.urs --- a/calendar.urs Fri Sep 23 13:30:01 2011 +0200 +++ b/calendar.urs Sat Sep 24 15:47:00 2011 -0400 @@ -20,7 +20,7 @@ val value : t -> signal date (* Read the date of the calendar. *) -val gui_t : Gui.gui t xbody +val gui_t : Gui.gui t [] (* Witness that this is a gui widget. *) val create : time -> transaction t diff -r 3a303df9ae92 -r 554e342665fe datebox.ur --- a/datebox.ur Fri Sep 23 13:30:01 2011 +0200 +++ b/datebox.ur Sat Sep 24 15:47:00 2011 -0400 @@ -1,5 +1,5 @@ -con t other_ctx = {Cal : Calendar.t, - Panel : TogglePanel.togglePanel Calendar.t other_ctx} +type t = {Cal : Calendar.t, + Panel : TogglePanel.togglePanel Calendar.t []} type date = Calendar.date val date_eq = Calendar.date_eq @@ -7,16 +7,15 @@ val time = Calendar.time val date = Calendar.date -(* : other_ctx:::{Unit} -> [other_ctx ~ body] => formatCtl other_ctx *) - -val format = TogglePanel.defaultFormat - --#OpenCtl -- #CloseCtl - ++ {OpenCtl = fn behaviour =>