Closed nguermond closed 2 years ago
Since it is there since 2.8, this should also probably go into lablgtk2.
What is your problem with wrap-mode.
Since pango_wrap_mode
is already defined, the conversions should be available.
When I recompile gtkTree.props I get
propcc src/gtkTreeProps.ml,src/ogtkTreeProps.ml
Warning: no conversion for type PangoAttrList in class GtkCellRendererText
Warning: no conversion for type PangoWrapMode in class GtkCellRendererText
As a result, when cell_renderer_text_param x
is called in gTree.ml
,
Error: This expression has type
[> ...
| `WRAP_MODE of Pango.Tags.wrap_mode
| `WRAP_WIDTH of int ]
but an expression was expected of type
[< ...
| `WRAP_WIDTH of int ]
The second variant type does not allow tag(s) `WRAP_MODE
I see. You just need to add WrapMode
in propcc.ml4
, line 79:
[ "Stretch"; "Style"; "Underline"; "Variant"; "EllipsizeMode"; "WrapMode" ];
Then run make dev
.
This seems to work!
Should I make a similar pull request to master
?
Should I make a similar pull request to
master
?
No need, I'll take care of this.
Allow text wrapping in cells in tree view.
Description of wrap-width: https://docs.gtk.org/gtk3/property.CellRendererText.wrap-width.html
I can't figure out how to get wrap-mode to work: https://docs.gtk.org/gtk3/property.CellRendererText.wrap-mode.html