Re: _GtkAppliationPrivate struct declaration not included in any header file?



Excellent - thanks for your quick, clear response.

On 06/01/2015 05:37 AM, Emmanuele Bassi wrote:
Hi;

On 29 May 2015 at 04:49, Richard Billington <billingt ai sri com> wrote:
But its referenced in gtkapplication.h:
    typedef struct _GtkApplicationPrivate GtkApplicationPrivate;

I'm trying to create an FFI to GTK+ using SWIG, and this lack means I can't.
I'm pretty sure you can, since every other language binding deals with
it just fine.

Thoughts? Thanks
GtkApplicationPrivate is just a typed pointer used to pad the instance
structure; what it points to is irrelevant, since it's data private to
the GtkApplication type.

You need to take it into account when sizing the instance structure
(something you can also do by using g_type_query() and getting the
instance size), but you should not have access to its contents — that
being the whole point of having the private data in the first place.

Ciao,
  Emmanuele.




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