Mercurial > projects > mde
diff mde/scheduler/Scheduler.d @ 95:2a364c7d82c9
Boolean options can be adjusted from the gui now (using a very basic widget). Also some bug-fixes.
Fixed a minor bug where layouts with the same id but without shared alignments would be messed up.
Tracked down the "nothing trawn until a resize" bug (see jobs.txt).
If widgets throw during creation they're now replaced by debug widgets.
Function pointers are converted to delegates using a safer method.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 06 Nov 2008 11:07:18 +0000 |
parents | 56c0ddd90193 |
children | 71f0f1f83620 |
line wrap: on
line diff
--- a/mde/scheduler/Scheduler.d Thu Oct 23 17:45:49 2008 +0100 +++ b/mde/scheduler/Scheduler.d Thu Nov 06 11:07:18 2008 +0000 @@ -18,6 +18,7 @@ * This class implements most functionality a generic scheduler might want, however currently it * doesn't any uses where equivalent functionality couldn't be achived very easily anyway. */ module mde.scheduler.Scheduler; +import mde.util; public import tango.time.Time; @@ -80,10 +81,7 @@ * scheduler.get(15).frame = true; */ ScheduleFunc add (ID id, scheduleFct func) { - // Convert to a delegate. Maybe someday implicit casts will work... - scheduleDlg d; - d.funcptr = func; - return add (id, d); + return add (id, toDg(func)); } /** ditto */ ScheduleFunc add (ID id, scheduleDlg func)