On Wed, Jul 29, 2009 at 10:09 AM, Andrea Grandi<[email protected]> wrote: > Hi, > > 2009/7/29 Anderson Lizardo <[email protected]>: >> One thing I noticed is that (again) MAFW is taking a different path >> from most gobject based libraries: _MafwPluginDescriptor and >> _MafwPluginDescriptorPublic are not GObjects :(. In that case, I think >> you will have to pretend they are so, making something like: >> >> (define-object PluginDescriptorPublic >> (in-module "Mafw") >> (parent "GObject") >> (c-name "MafwPluginDescriptorPublic") >> (gtype-id "MAFW_TYPE_PLUGIN_DESCRIPTOR_PUBLIC") >> ) >> >> (I didn't test any of it; probably some compilation errors will occur, >> try to play with it a little and see if you can figure out why the >> errors occur, this way you will have a better understanding of things) > > I get this error trying to compile: > > mafw.c: In function 'pymafw_register_classes': > mafw.c:1966: error: 'MAFW_TYPE_PLUGIN_DESCRIPTOR_PUBLIC' undeclared > (first use in this function) > mafw.c:1966: error: (Each undeclared identifier is reported only once > mafw.c:1966: error: for each function it appears in.) > error: command 'gcc' failed with exit status 1 > > I also did a grep like this: grep -R MAFW_TYPE_ * | grep PLUG > but I couldn't find anything :(
That's because this symbol does not exist, It just came from the defs snippet I sent ;) The problem is, the type above it not a GType, so various things are missing to properly support it. Google just found this: http://www.daa.com.au/pipermail/pygtk/2007-November/014433.html You can try one of the two approaches described there. Note that I can't help much here, I've never done such a thing. > I could try to tell to MAFW guys if they can change their API, but... > I don't think they will do it at this point... Agreed, and even if they did, that changes would not appear in Fremantle at this stage :/ > > isn't there any other project that uses define-struct? I tried to > google for it too, but I couldn't find anything... maybe it has > another name? I don't think there is such "define-struct" ... I only see usage of define-object. I take most examples from pygtk, but there I haven't find any type that did not have a GType. Good luck, -- Anderson Lizardo OpenBossa Labs - INdT Manaus - Brazil _______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
