On Sat, Nov 29, 2008 at 04:48:25PM +0100, Julien Danjou wrote:
> At 1227968116 time_t, Mike Hommey wrote:
> >  awful.hooks.arrange.register(function (screen)
> >      local layout = awful.layout.get(screen)
> >      if layout then
> > -        mylayoutbox[screen].image = image(beautiful["layout_" .. layout])
> > +        img = image(beautiful["layout_" .. layout])
> > +        mylayoutbox[screen].image = img.rotate(img, math.pi / 2)
> >      else
> >          mylayoutbox[screen].image = nil
> >      end
> > 
> > in my rc.lua in the hope that icons would be rotated (cf. #489409).
> > 
> > But, for a starter, I was expecting img.rotate(number) to be how it works,
> > except that I was getting the following error message then:
> >     bad argument #1 to 'rotate' (image expected, got number)
> 
> Well, that's just because you don't know Lua enough.
> The correct syntax is img:rotate(number).
> 
> Does it getting better?

It's better code-wise, but not result-wise ;)

Mike



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to