Hi ,
I'm getting it.
I've been analyzing pan-item.c code. It's quite complex but now I think I
know what you want to do.
I'm editing the source code putting some comments; but they are not reliable
as documentation. BTW ; it's a bit useless now if I understand what you want
to do.
You talk about changing all functions, and most of functions in pan-item.c
and use *clutter library functions*.
Altrought it's possible to do that; it a quite amount of work ! ( not
complying, just saying ;) ) .
- We have to check the dependencies of all modules that call pan-item.c
functions. So if for example we change:
*PanItem *pan_item_box_new(PanWindow *pw, FileData *fd, gint x, gint y, gint
width, gint height,
gint border_size,
guint8 base_r, guint8 base_g, guint8 base_b, guint8 base_a,
guint8 bord_r, guint8 bord_g, guint8 bord_b, guint8 bord_a)
{ ... }*
for
*PanItem *pan_item_box_new(PanWindow *pw, FileData *fd, gint x, gint y, gint
width, gint height,
gint border_size,
guint8 base_r, guint8 base_g, guint8 base_b, guint8 base_a,
guint8 bord_r, guint8 bord_g, guint8 bord_b, guint8 bord_a)*
{
clutterItemBox = clutter_new_item_box(height,weight,...);
...
return what??
}
We¡ll have to check: will it be PanItem and other data structures necessary
yet? I think that we'll have to rewrite all headers, and rewrite functions
everywhere pan-item.c are called, wouldn't we ?
Or we can encapsulate Clutter library data structures in geeqie structures.
Maybe this would be the correct choice; because of we can still need some
fields from PanItem data structure.
typedef _PanItem PanItem
{
PanItemType type; //tipo de panitem EJ: PAN_ITEM_BOX
gint x; // coordenada x que ocupa en la pantalla
gint y; // coordenada y que ocupa en la pantalla
gint width; // anchura
......
clutterItemBox ClutBox;
}
Tell me if you have any plan with this:
- Are there any data structures clearly to be removed and substitued?
- Where do you think is the best place to start changing functions, and
thinking about what about clutter libraries we could use? Maybe first I
should start identifying all data structures in pan-items and try to
susbstitute by clutter library data structures?
2009/4/7 Vladimir Nadvornik <nadvor...@suse.cz>
> On út 7. dubna 2009, Oscar Miras wrote:
> > >> BTW, when I am looking at the map widget, libchamplain and clutter, it
> > >> might
> > >> be worth investigating if we could use the clutter library as a pan
> view
> > >> backend.
> > >>
> > >> http://www.clutter-project.org/
> >
> > BTW : what's the problem of making it using only gtk+?
>
> Pan view does not use much from gtk. Most of it's functionality (even
> low-level drawing functions) is implemented directly in Geeqie. That means
> there are no improvements unless we implement them ;(
>
> On the other hand, "Clutter is an open source software library for creating
> fast, visually rich and animated graphical user interfaces.". That is
> exactly
> what we need for pan view.
>
> Compared with the current implementation it provides
> - documented API
> - many features
> - flexibility
> - HW acceleration
>
>
> > I really don't know
> > what you mean with using clutter library as a pan view backend. Will it
> be
> > easy to use it from the actual pan view code, or should we rewrite it
> from
> > the beggining ?
>
> I didn't look at details, but I think that it would need replacing the
> drawing
> functions in pan-item.c. The high level functionality could stay mostly
> unchanged (pan-timeline.c, pan-calendar.c).
>
> >
> > I have Debian lenny, so I think I should download
> > http://packages.debian.org/source/lenny/clutter-gtk to have a look at
> it,
> > shouldn't I ?
>
> Debian packages should be OK.
>
> Vladimir
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Geeqie-devel mailing list
> Geeqie-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geeqie-devel
>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel