On Fri, Oct 2, 2009 at 1:35 AM, Andrew Flegg <[email protected]> wrote: > On Thu, Oct 1, 2009 at 10:11, Thomas Perl <[email protected]> wrote: >> >> I want to use Vala for a more efficient rewrite of feedhandler, and I >> would like to use some widgets from the Fremantle version of Hildon. As >> you are the maintainer of the vala package, I though I could ask you for >> help :) > > I've CCed Philipp, as he was looking at this - and has even posted a > first draft of updated bindings to the Vala list. > > Philipp - how's your work been going?
Hi Andrew, Thomas, forwarding to vala-list to get more eyes on the hildon patch. There are still two big open question for me: - How to avoid the manual steps during VAPI generation (it seems Thomas had to face the same problems as I, below) - Where should the hildon specific gtk+-2.0 modifications go? A patched gtk+-2.0.vapi that is only carried in the maemo vala packages? Or somehow added to hildon-1.vapi, if that is possible at all? Right now, I'm happily using the attached patch to vala git together with a (manually...) patched gtk+-2.0.vapi to build an application that uses at least the default Fremantle features (stackable windows, view menus, picker buttons, banners, notes, etc.) Any hints on how to proceed? regards Philipp > Cheers, > > Andrew > >> I've played around with vapigen and vala-gen-introspect myself, but have >> am now stuck with these error messages: >> >> [sbox-FREMANTLE_X86: ~/yo/test] > vapigen --library hildon-1 >> ~/vala/vapi/packages/hildon-1/hildon-1.gi >> hildon-1.gi:0.0-0.0: error: `Hildon.CheckButton' already contains a >> definition for `toggled' >> hildon-1.gi:0.0-0.0: error: `Hildon.PickerButton' already contains a >> definition for `value_changed' >> hildon-1.gi:0.0-0.0: error: `Hildon.TouchSelector' already contains a >> definition for `has_multiple_selection' >> Generation failed: 3 error(s), 0 warning(s) >> >> I then simply commented out the duplicate definitions in the .gi file >> and got this (removed duplicate lines): >> >> [sbox-FREMANTLE_X86: ~/yo/test] > vapigen --library hildon-1 >> ~/vala/vapi/packages/hildon-1/hildon-1.gi >> error: The type name `Hildon.SizeType' could not be found >> error: The type name `Hildon.UIMode' could not be found >> error: The type name `key_t' could not be found >> error: The type name `Hildon.GtkInputMode' could not be found >> Generation failed: 31 error(s), 0 warning(s) >> >> And here I gave up :) FYI, I had to add "--enable-vapigen" to the >> configure call in debian/rules to get vapigen + vala-gen-introspect in >> the 'vala' package. I then followed the instructions on >> >> http://live.gnome.org/Vala/Bindings >> >> and used vapi/packages/hildon-1 from git://git.gnome.org/vala > > -- > Andrew Flegg -- mailto:[email protected] | http://www.bleb.org/ >
hildon-1-fremantle.patch.gz
Description: GNU Zip compressed data
gtk+-2.0.vapi.patch.gz
Description: GNU Zip compressed data
_______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
