RSS/Atom feed Twitter
Site is read-only, email is disabled

Two patches for the vala binding.

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Two patches for the vala binding. Damien de Lemeny-Makedone 21 May 11:00
  Two patches for the vala binding. Damien de Lemeny-Makedone 21 May 13:18
Damien de Lemeny-Makedone
2010-05-21 11:00:54 UTC (almost 15 years ago)

Two patches for the vala binding.

bindings/vala: Fix deprecated syntax * s/weak/unowned in gegl-0.0.vapi, babl-0.0.vapi 2 files changed, 41 insertions(+), 41 deletions(-)

bindings/vala/gegl-0.0.vapi: Add Path, Buffer.linear_open, Buffer.linear_close
1 files changed, 38 insertions(+), 0 deletions(-)

I also join a vala version of the gegl-paint example.

gegl-paint: gegl-paint-source gcc -o gegl-paint gegl-paint.c gegl-view.c `pkg-config --libs --cflags gegl` `pkg-config --libs --cflags gtk+-2.0`

gegl-paint-source: gegl-paint.vala gegl-view.vala valac -C gegl-paint.vala gegl-view.vala --pkg=gtk+-2.0 --vapidir=../vapi --pkg=gegl-0.1 --pkg=babl-0.1 --thread

Regards.

Damien

Damien de Lemeny-Makedone
2010-05-21 13:18:38 UTC (almost 15 years ago)

Two patches for the vala binding.

I'd also suggest to rename .vapi files against pkg-config files (no version number),
valac --pkg option makes use of pkg-config names to link to the correct libraries.

babl-0.0.vapi -> babl.vapi gegl-0.0.vapi -> gegl.vapi

valac -C gegl-paint.vala gegl-view.vala --pkg=gtk+-2.0 --vapidir=../vapi

--pkg=gegl-0.1 --pkg=babl-0.1 --thread

Crap, I didn't triple-check this. Replace 0.1 with 0.0 and use path to gegl/bindings/vala as vapidir :
valac -C gegl-paint.vala gegl-view.vala --pkg=gtk+-2.0 --vapidir=/gegl/bindings/vala --pkg=gegl-0.0 --pkg=babl-0.0 --thread

Damien