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
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
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
__
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