4

如何设置 GtKTextView 的大小?我想我不能使用 gtk_widget_set_usize。

4

1 回答 1

4

You cannot control size of a widget directly, instead this is done by its container. You can force a minimum size by using gtk_widget_set_size_request(), it will be respected by all standard containers. There is no similar way to set maximum size in the same way, this totally depends on the container.

于 2010-05-14T16:35:44.037 回答