[Gegl-developer] GEGL and GTK+, a proposal

2011-06-12 Thread Jon Nordby
Currently there are two things using GTK in the gegl source tree.
- gtk-display operation in operations/workshop/external
- GeglView widget in examples/utils/

I want to move these things into a gtk utility library for gegl. My
motivation is twofold:
1) I want gegl to succeed in becoming a generic raster manipulation
library that is commonly used. For this to happen I think it is
important that we make it simple to use in a graphical application.
Showing a Gegl graph in an application should be less than 10 lines of
code added.
2) I am looking to use gegl in MyPaint (post version 1.0). We will
need some basic things (like a good view widget) and I want to develop
it in such a way that it can easily be reused by others.
delete
So I propose to:

- Create a new gegl-gtk repository, containing the new library
(alternative is to have it as a toplevel in gegl repo, if anyone can
present good arguments for that I don't mind)
- Add gegl-gtk component to bugzilla
- Move gtk-display and GeglView there, remove it from gegl repo

The new library will be licenced LGPLv3 like Gegl itself. This means
that the GeglView code will have to be relicensed from GPLv3. Anyone
that objects to this? As far as I can see only I, and Øyvind have
significant stake in it.

Short term TODO list:

General
* Add GObject introspection support

GeglView
* Write tests
* Write benchmark
* Add API for getting model->view transformation matrix
* Add rotation support
* Add signals for drawing widget background and overlay
* Add property to change scaling/cropping/streching behavior

gtk-display
* Use GeglView instead of custom widget

examples
* Add a super basic example
* Add a way to manipulate view transformation to paint example

Longer term I hope that more widgets and utilities can be added, as
they are developed from the needs of GIMP and other GEGL consumers.

-- 
Jon Nordby - www.jonnor.com
___
Gegl-developer mailing list
Gegl-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer


Re: [Gegl-developer] GEGL and GTK+, a proposal

2011-06-12 Thread Joao S. O. Bueno
On Sun, Jun 12, 2011 at 3:03 PM, Jon Nordby  wrote:
(...)
> So I propose to:
> - Create a new gegl-gtk repository, containing the new library
> (alternative is to have it as a toplevel in gegl repo, if anyone can
> present good arguments for that I don't mind)
> - Add gegl-gtk component to bugzilla
> - Move gtk-display and GeglView there, remove it from gegl repo

It makes sense for me.
As you stated, removing GTK+ from GEGL's dependencies should allow
GEGL to be used in more projects as a it should be.

  js
 -><-
___
Gegl-developer mailing list
Gegl-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer