Re: GtkTextView sizing



Gary Benson <gary inauspicious org> writes:
Without getting into the big picture, the reason you get scrolling is
that the text view's vertical size request exceeds its allocation.
Which means you need to be sure it gets the whole vertical size
request.

Yeah, I was wondering if there is any way to override this
behaviour.

I don't see what overriding it would mean, other than making sure it
gets the whole vertical size request.
 
That's a shame, since I really wanted to build on GtkTextView (and avoid 
having to write an entire text editor!). Do you think I'll be unable to do 
what I want with collections of pre-existing widgets?

I think it'll be clunky (UI not quite right). You can probably get
something that roughly works, but not something that's really
polished.

You don't need to write a text editor. I'd copy what GtkTreeView does:
it only pops up a GtkEntry when you click a row to begin editing,
normally it just draws the text itself. Look at the editable treeview
example in gtk-demo to see what I mean.

Havoc



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