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

Bit too hacky, outdated and incomplete to share, sorry. IMO it's worth hacking
on the master branch up front in order to get it into a state that
pygi-convert.sh prefers before making the gtk3 branch. Low-hanging fruit:

- Cleaning up import syntax; it's a quick and simple task.

- Redoing any GdkPixmap and GdkBitmap code for cursors using offscreen Cairo
stuff as much as possible. Probably the best approach for the long run. Fairly
involved, but not too much code.

- Adding unit tests for custom widgets. Might be trickier given how interwired
the widgets are, so not essential.

- Taking the opportunity to redo any sizing code that wants use
Gtk.Widget.window just for querying the width and height. Quite often it's
just the wrong approach anyway, and it's more futureproof to use a
.get_allocation() invocation.

Forking a pygi-convert.sh into the MyPaint master and extending it to cope
with constants which are now defined in submodules would be a nice hack to
have too. It's something that can only be built up with experience though.

    _______________________________________________________

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