Re: libchamplain 0.8 python bindings



On Sun, Dec 26, 2010 at 19:37, Patrick Salecker <patty9999 gmx de> wrote:
> Am 18.10.2010 14:28, schrieb Patrick Salecker:
>
> ChamplainMarker.set_image(None) doesn’t work because it requires a
> Clutter.Actor in the generated gir file and doesn't allow the parameter None
> to remove the image. Maybe this could be fixed in libchamplain.
>
> It took a while, but now I have looked into it, the right introspection
> annotation is "(allow-none)":
>
> Only valid for parameters. Means that the caller may pass in NULL instead of
> a pointer to a string/struct/object.
>
> For more information see:
> http://live.gnome.org/GObjectIntrospection/Annotations
>
> I also changed it for a few other methods, I simply used "grep 'or NULL'
> *.c| grep @".


Thanks Patrick, I've committed your patch to master.

Jiri


>
> I noticed that I have to manually copy/move/link the .typelib files from
> /usr/local/lib/girepository-1.0 to /usr/lib/girepository-1.0/, otherwise
> PyGi can't find Champlain.
>
> _______________________________________________
> libchamplain-list mailing list
> libchamplain-list gnome org
> http://mail.gnome.org/mailman/listinfo/libchamplain-list
>
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]