Excerpts from Uli Schlachter's message of Thu Jul 30 07:49:51 -0400 2009:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Uli Schlachter wrote:
> > Andrei Thorp wrote:
> >> I wanna get my patches reviewed dammit ;)
> > 
> > Ok, here we go:
> > 
> >> Subject: [PATCH 1/4] Lib: hooks lib w/ awful timer wrapper functions
> > [...]
> >> diff --git a/lib/hooks/init.lua b/lib/hooks/init.lua
> >> new file mode 100644
> >> index 0000000..ec94102
> >> --- /dev/null
> >> +++ b/lib/hooks/init.lua
> > [...]
> >> +-- Register a timer just as you would with awful.hooks.timer.register, but
> >> +-- with one slight twist: you set your regular speed, (optionally) your 
> >> slow
> >> +-- speed, and then your function.
> >> +-- @param reg_time Regular speed for the widget
> >> +-- @param slow_time Slow time for the widget
> >> +-- @param fn The function that the timer should call
> >> +-- @param descr The description of this function
> >> +function timer.register(reg_time, slow_time, fn, descr)
> >> +    if not slow_time then slow_time = reg_time * 4 end
> >> +    registry[fn] = {
> >> +        regular=reg_time,
> >> +        slow=slow_time,
> >> +        speed="regular",
> >> +        running=true,
> >> +        description=descr or "Undescribed timer"
> >> +    }
> >> +    timer.set_speed(registry[fn].speed, fn)
> >> +end
> > 
> > [...] (BTW, is slow_time being nil handled anywhere?)
> 
> Ah, found it. I'd propose to move this into set_speed().
> 
> if want_slow_spped() then
> local speed = v.slow or 4 * (v.regular or 42)
> else
> local speed = v.reguler or 42
> end

Don't really understand why you want this / what it's for.
-- 
Andrei Thorp, Developer: Xandros Corp. (http://www.xandros.com)

-- 
To unsubscribe, send mail to [email protected].

Reply via email to