Re: GInterfaces and API Stability

I notice that there are no padding members in, for example,
GtkCellLayoutIface.  Adding members therefore will change the
struct size which sounds like a clear ABI change to me.

Anyone who did

typedef struct {
    GtkCellLayoutIface clif;
    Bar baz;
} Foo;

is going to see random crashes when dynamically linked with a newer
gtk+.  Not good.  So even the C ABI was broken with

GtkWidgetClass, on the other hand, has extension member to be used
for new signals.  That does not suffer from the above.


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