Jason Tackaberry wrote:
> I checked in some big updates to kaa.display.  Most of the X11 display
> code has been rewritten from scratch.  There's now a separate X11Display
> class, as well as X11Window.  It supports imlib2 (via
> X11Window.render_imlib2_image) and also evas, via the EvasWindow class.
> (kaa.evas isn't checked in yet, probably tomorrow.)
>
> So you should have something like this ...
>
>         from kaa import imlib2, display
>         from select import select
>         
>         win = display.X11Window(size = (800,600), title = "Testing")
>         win.show()
>         img = imlib2.open("foobar.png")
>         win.render_imlib2_image(img)
>         while True:
>            if select([win.get_display().socket], [], [], 1)[0] != []:
>               win.get_display().handle_events()

More or less, kaa.notifier is doing the select for us. So it is more
          kaa.notifier.addSocket(win.get_display().socket, 
                       win.get_display().handle_events)
          kaa.notifier.loop()

> I updated mevas to use kaa.display for Imlib2Canvas, and it's tested and
> works.  I also updated freevo/src/input/plugins/x11.py to reflect the
> changes to mevas, but I haven't tested this code at all, and it might be
> very broken.  Needs review and testing.

I did some updates":

o move around some variables in header and c files to make it compile
  without evas installed. :)
o add a header to all c and h files
o shorten lines to 80 chars

Your freevo changes worked, so everything is fine now.


Dischi

-- 
If windows is the answer, it must have been a stupid question.

Attachment: pgp7aLQkEsOZL.pgp
Description: PGP signature

Reply via email to