Hi, Everyone
In gtk2forpascal, TGtkTextSearchFlags is defined as follows:
TGtkTextSearchFlags =3D (
GTK_TEXT_SEARCH_VISIBLE_ONLY,
GTK_TEXT_SEARCH_TEXT_ONLY
);
Then the following C codes can't be converted to Pascal:
search_flags =3D GTK_TEXT_SEARCH_VISIBLE_ONLY | GTK_TEXT_SEARCH_TEXT_O=
NLY;
to
search_flags :=3D GTK_TEXT_SEARCH_VISIBLE_ONLY or GTK_TEXT_SEARCH_TEXT=
_ONLY;
Because bit operator can't be operated on enum type. And at the same t=
ime,
gedit_text_iter_forward_search() function in pascal will ask for a enu=
m=20
type, anything else is unacceptable. So, How can I do?
I think this is a bug of gtk2forpascal, for the developers have not=20
anticipate the incompatibility between Pascal and C.
Yours,
mili
|