[fpc-pascal] G_TYPE_STRV in Pascal?

Henry Vermaak henry.vermaak at gmail.com
Thu Nov 5 20:34:47 CET 2009


2009/11/5 Matthias Klumpp <matthias at nlinux.org>:
> Hello!
> I currently try to implement parts of the DBUs-GLib-API in Pascal. To test
> some of the functions, I need the G_TYPE G_TYPE_STRV (look here:
> http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#G-TYPE-STRV--CAPS
> )
> Does anyone know, how to represent this type in Pascal?
> E.g. G_TYPE_STRING is represented by GType(16 shl
> G_TYPE_FUNDAMENTAL_SHIFT);, which is the right one for G_TYPE_STRV?

Look at packages/gtk2/src/glib/gboxed.inc to see how these are
implemented (function implementation is in glib2.pas).  You can
probably add it to that file.

Henry



More information about the fpc-pascal mailing list