How to make GtkLabel fills like GtkTextView?



Hi,

Some of the code I'm working on is using 'GtkTextView' to display text,
which is just few sentences, rather than GtkLabel. I don't know why, Can
anyone tell me what is the case to use 'GtkTextView' instead of 'GtkLabel'
to display a text with several sentences(< 100 words) in not editable way?

I tried to replace those GtkTextView with GtkLabel, which set wrap to
'word', the result is different. Here is the screenshot:
http://i48.tinypic.com/n1os9f.png . I put the GtkTextView and GtkLabel to
seperate GtkScrolledWindow, which disabled both scrollbar. The above is the
GtkTextView, it expend to entire GtkScrolledWindow, and the below is the
GtkLabel, it's only in a small range in the middle of the GtkScrolledWindow.
How to make GtkLabel fill the entire range, just like what GtkTextView did?
Thanks.


-- 
Regards

Tao Wang



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]