Re: Implementing my own ScrolledWindow



Thanks a lot! You helped me find the answer: I had to call
textview.set_size_request(0, 0),
so now the textview doesn't request space for all its contents.

Thanks again,
Noam

On Mon, Jul 5, 2010 at 9:54 AM, Tadej BorovÅak <tadeboro gmail com> wrote:
Hello.

How can I make it not expand?

You cannot do that with GtkTable, since table will always grant all
the space GtkTextView requested. I see two possible solutions here:
write GtkScrolledWindow-like widget from scratch (with all the
scrollbar positioning, ...) or create simple wrapper widget that will
"underallocate" your text view and place that into a table. Second
solution is probably easier to implement, but first one is more
flexible.

Tadej

--
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com




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