Follow-up Comment #2, bug #19230 (project mypaint):

Isolated problems so far, but I only got as far as having to understand
"sparse" and tripping over a Brush::stroke_to() assertion before I gave up.
>From my notes

- pygi-convert doesn't hit all of our imports, which is annoying.

- Have to be real careful about not mixing old gobject/gtk/glib/pango libs
with new gi.repository.* stuff.

- Gdk.Display.get_maximal_cursor_size() isn't wrapped properly for the 2.0 I
tried. It works fine in 3.0.

- Drawables; GdkPixmap and GdkBitmap are removed in gtk3. For the custom
cursor at least, that means doing it in Cairo and building the cursors from a
pixbuf.

- "expose-event" is now named "draw", and the signature has changed: the
handler gets passed a Cairo context. Not sure if it's pre-clipped to just what
needs drawing; this is sort of where I gave up trying to understand the
sparseness optimizations.

- Seemingly no extension events any more. I think everything that used to be
enabled via extensions is available through modern XInput stuff.

- No gtk.Widget.window attr any more for any widgets. We'll need to use
.get_window() instead, or consider whether we really meant the widget's
allocation (.get_allocat{ion,ed_{width,height}}()) when all we're doing with
the Gdk.Window is polling its height and width. You should, apparently, use
the allocation sizes when drawing.

So an initial plan of action that we can do in master up front might be to a)
sort out the pygtk imports so they're all in standard form (one import per
line, so that pygi-convert can chew them more easily), b) sort out
attribute-based access to gtk.Widget.window and anything else we see, c) rejig
the custom cursor making code and any other uses of GdkPixbuf or GdkBitmap
completely, d) more per-module test harnesses for important custom widgets,
since they'll help us get off the ground faster.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?19230>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to