开发者

How to truncate a text in a custom GtkCellRenderer?

I trying to create custom GtkCellRenderer with some text. And I want this text truncated, when a size of GtkCellRenderer is smaller than size 开发者_如何学Goof text. For example:

alt text

How can I do this? Is this some property of CellRenderer or PangoLayout or I need to do this manually?


Use the ellipsize and ellipsize-set properties of GtkCellRendererText.

If you want to do it manually with Pango, use pango_layout_set_ellipsize().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜