Re: How to get the label's height?

2006-08-17 Thread Nickolai Dobrynin
Hi Damian, First, you typically don't call 'realize' directly, and doing so is completely unnecessary in your particular case. The library will do it for you when appropriate. The simplest scenario for adding widgets is: you first add them to the window and then call gtk_widget_show_all on that p

Re: How to get the label's height?

2006-08-17 Thread Damián Cinich
2006/8/16, Nickolai Dobrynin <[EMAIL PROTECTED]>: Damian, Just a guess. Are you certain that the widget has been realized by the time you start querying it for size? The size is only meaningful if your widget had previously been realized. Putting your label inside an EventBox would hardly

Re: How to get the label's height?

2006-08-16 Thread Nickolai Dobrynin
Damian, Just a guess. Are you certain that the widget has been realized by the time you start querying it for size? The size is only meaningful if your widget had previously been realized. Putting your label inside an EventBox would hardly make a difference. Regards, Nickolai __

How to get the label's height?

2006-08-15 Thread Damián Cinich
Hi, I need to know the height of a GtkLabel, I have used label->allocation.height but it returns always '1', I also tried puting the label into a EventBox and then using eb->allocation.height, but it also not work. Using "size requisition" I get '0'. Is there another way to get the label's height