Re: Finding widget from its name?

2006-08-16 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Aug 16, 2006 at 06:02:27AM +0100, jan wrote: Progss wrote: [EMAIL PROTECTED] napisa?(a): Is there a function that allows one to search for a widget using its name or label? I'm using Glade 2 to design a window (just a basic input

How to get the label's height?

2006-08-16 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?

Re: problem displaying rgb images on window

2006-08-16 Thread Iago Rubio
On Tue, 2006-08-15 at 13:59 +0200, Daniel Haude wrote: On Wed, 26 Jul 2006 06:41:38 +0200, Richard Boaz [EMAIL PROTECTED] wrote: gtk_widget_queue_draw_area(DrawingArea, 0, 0, DrawingArea-allocation.width, DrawingArea-allocation.height); while (gtk_events_pending())

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

Re: Finding widget from its name?

2006-08-16 Thread jan
Hi Tomas, Now that is what I call a seriously good explanation! Thanks a lot. /jan [EMAIL PROTECTED] wrote: On Wed, Aug 16, 2006 at 06:02:27AM +0100, jan wrote: Progss wrote: [EMAIL PROTECTED] napisa?(a): Is there a function that allows one to search for a widget using its name or label?