In Gtk3 WS code, integers were used instead of enumeration values.
This leads to compilation error now that `TGtkStateFlags` is
defined as an enumeration type. This commit fixes those errors.
In Gtk3 WS code, integers were used instead of enumeration values.
This leads to compilation error now that `TGtkCellRendererState` is
defined as an enumeration set type. This commit fixes those errors.
Please note the following comments in the changed code:
```pascal
//TODO: This is hand written just to give the direction we need to go.
//TODO: We need to make git2pas generate similar code for bitfields.
In Gtk3 WS code, integers were used instead of enumeration values.
This leads to compilation error now that `TGtkResponseType` is defined
as an enumeration type. This commit fixes those errors.
In Gtk3 WS code, variables of type Integer were used instead of ones
of relevant enumeration type.
This leads to compilation error now that `TGtkTextDirection`,
`TGtkAccelFlags`, `TGtkDirectionType` , `TGtkOrientation` and
`TGtkDestDefaults` are defined as an enumeration type.
This commit fixes those errors.
In Gtk3 WS code, integers were used instead of enumeration values.
This leads to compilation error now that `TGdkEventMask` is defined
as an enumeration set type. This commit fixes those errors.
Please note the following comments in the changed code:
```pascal
//TODO: This is hand written just to give the direction we need to go.
//TODO: We need to make git2pas generate similar code for bitfields.
```
In Gtk3 WS code, variables of type Integer were used instead of ones
of relevant enumeration type.
This leads to compilation error now that `TGtkJustification`,
`TGtkShadowType`, `TGtkScrollType` and `TGtkPackDirection` are defined
as an enumeration type. This commit fixes those errors.
In Gtk3 WS code, variables of type Integer were used instead of ones
of relevant enumeration type.
This leads to compilation error now that `TGdkCursorType` is defined
as an enumeration type. This commit fixes those errors.
In Gtk3 WS code, integers were used instead of enumeration values.
This leads to compilation error now that `GtkSelectionMode` is defined
as an enumeration type. This commit fixes those errors.
In Gtk3 WS code, 0 was used instead of `G_CONNECT_DEFAULT`.
This leads to compilation error now that `GtkConnectFlags` is defined
as an enumeration type. This commit fixes those errors.
Now, `git2pas` produces enumeration types when translating C enums.
This implies changes in WS support files as Pascal enumeration types
are not compatible with integers and require explicit cast.
In order to avoid explicit casts, some internal functions API were
changed so that the code remains clean without unneeded type casts.
Changes included here are:
1. Added new code for defining shared object libraries to be used.
2. Added binding of library `HarfBuzz` used by recent `Pango` version.
3. Added bindings of `Xlib` opaque types used by `HarfBuzz`.