Fwd: GtkChamplain API broke somewhere from 0.6->0.8
- From: Robert Park <rbpark exolucere ca>
- To: libchamplain-list gnome org
- Subject: Fwd: GtkChamplain API broke somewhere from 0.6->0.8
- Date: Mon, 27 Dec 2010 11:01:20 -0700
Ooops, accidentally took this off-list. Sorry.
On Sun, Dec 26, 2010 at 10:00 AM, Łukasz Jernaś <deejay1 srem org> wrote:
>> OK, seems that the reason for this is that the get_view method is
>> marked with "introspection=0" in the gir file and as such isn't
>> exported in the introspection stuff. Now we just have to figure out
>> how to export it properly ;)
>
> And the answer is.... 42.
> OK, seriously there's a missing transfer annotation for that method in
> the C source, but as I have absolutely no idea if it has to be set to
> "none", "container" or "full"
> (http://live.gnome.org/GObjectIntrospection/Annotations) it's up to
> Jiří to implement this.
This is what GtkChamplain-0.6.gir says:
<method name="get_view"
c:identifier="gtk_champlain_embed_get_view"
version="0.4">
<doc xml:whitespace="preserve">Gets a #ChamplainView from the
#GtkChamplainEmbed object.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a #ChamplainView ready to be used</doc>
<type name="Champlain.View" c:type="ChamplainView*"/>
</return-value>
</method>
And that I know works perfectly, so I guess the answer you are looking
for is "full"?
Hope this helps.
--
http://exolucere.ca
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]