Re: Calculating the size of TextView

2012-11-23 Thread Johan Mattsson
On Sat, Nov 24, 2012 at 8:02 AM, Johan Mattsson wrote: > Thank you, this is good news. > > My hack to set the size for TextView, is to call set_text when ever > it's parent is drawn. Far from good code but it works: > > vbox.draw.connect (() => { > text_view

Re: Calculating the size of TextView

2012-11-23 Thread Andrew Potter
I did a little investigating today. This bug is fixed in the latest. I git bisected and found out that the commit that makes it work is 15be68054074bc, which was in 3.5.1. So I gtk 3.6 should work for you. On Fri, Nov 23, 2012 at 10:53 AM, Andrew Potter wrote: > I've run into this before myself

Re: Calculating the size of TextView

2012-11-23 Thread Andrew Potter
I've run into this before myself [1]. Seems to happen only when you add the Textview to an already show()n parent, as you are doing by adding it with a button click. I gave up and used a label. They work fine. [1] https://mail.gnome.org/archives/gtk-devel-list/2012-September/msg00034.html On Su

Calculating the size of TextView

2012-11-18 Thread Johan Mattsson
Hi I am working on a GTK application that creates a form with many text areas in it. It seems to work fine until I add my widgets to a scrolled pane. Like this: test.vala: using Gtk; class MainWindow : Gtk.Window { Box vbox = new Box (Orientation.VERTICAL, 5); p