Hey folks,
after digging around with extension js code for a while, I found
that a lot of the native API is "documented" in gir files. In
particular, I was looking at /usr/lib/mutter/Meta-3.0.gir here.
However, I couldn't manage to access the get_xwindow method on the
MetaWindow class. In the gir file, it says:
<method name="get_xwindow"
c:identifier="meta_window_get_xwindow"
introspectable="0">
<return-value transfer-ownership="none">
<type name="xlib.Window" c:type="Window"/>
</return-value>
<parameters>
<instance-parameter name="window" transfer-ownership="none">
<doc xml:space="preserve">a #MetaWindow</doc>
<type name="Window" c:type="MetaWindow*"/>
</instance-parameter>
</parameters>
</method>
However, when I run this in the looking glass, it gives an "is not a function"
error.
win = global.get_window_actors()[0].metaWindow;
win.get_xwindow();
I suspect this is related to the introspectable="0" attribute, but I can't quite figure out how this works.
It seems essentially the same question was asked on the gtk list two
years ago, with no replies. http://marc.info/?l=gtk&m=133003907121583&w=2
Any idea?
Gr.
Matthijs
Attachment:
signature.asc
Description: Digital signature