Re: Implementing my own ScrolledWindow
- From: Noam Yorav-Raphael <noamraph gmail com>
- To: Tadej BorovÅak <tadeboro gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Implementing my own ScrolledWindow
- Date: Mon, 5 Jul 2010 13:29:44 +0300
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]