Re: How to get the widget's current width and height?



On Wed, 2003-11-19 at 04:52, John K Luebs wrote:
On Tue, Nov 18, 2003 at 09:29:50AM -0500, Tom Liu wrote:
gdk_drawable_get_size(w->window,&wid,&hi); may work for the widget which
has a xwindow such as eventbox. For vbox, label, button etc. It will not
work.
Can't believe there is no function to retrive size of widget?!


GTK_WIDGET (widget)->allocation.width
GTK_WIDGET (widget)->allocation.height;

iain
-- 
"Miss Celine Dion sings lovesongs while our cities burn"




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