GTK2.PangoTabArray inheritance issues
Chris Angelico <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CAPTjJmpy_PDcvFEYb5dpRMfcMPev5m7a8c7z4dFS=DMzOr_yVQ@mail.gmail.com> |
Constructing a GTK2.PangoTabArray either segfaults or raises warnings:
Pike v8.0 release 1 running Hilfe v3.5 (Incremental Pike Frontend)
> GTK2.setup_gtk();
(1) Result: ({ /* 1 element */
"Pike GTK"
})
> GTK2.PangoTabArray(0,0);
(Pike GTK:31214): GLib-GObject-WARNING **: invalid unclassed pointer
in cast to `GObject'
(Pike GTK:31214): GLib-GObject-CRITICAL **: g_object_set_data_full:
assertion `G_IS_OBJECT (object)' failed
(2) Result: Pango.TabArray
> GTK2.PangoTabArray(1,0);
Segmentation fault
According to http://pike.lysator.liu.se/generated/manual/modref/ex/predef_3A_3A/GTK2/Pango/TabArray.html
and pangotabarray.pre, it's being set up to inherit G.Object; but
according to https://developer.gnome.org/pango/stable/pango-Tab-Stops.html
it actually inherits GBoxed, which is a type Pike doesn't implement.
Everything seems to work, and the warnings are only on construction.
Is there a problem here that needs to be solved, or is it just like
all the piles of warnings Wine produces?
ChrisA