Re: How to get widget size?



"David J. Topper" <topper virginia edu> writes:
> I'm packing widgets into GnomeCanvasItems ... but need a nice way to get
> the underlying widget's size so that the parent GnomeCanvasItem can be
> drawn accordingly.
> 
> Primary example is a slider (range widget) with an adjacent scale.  If I
> draw the GnomeCanvasItem to small, I won't get all my scale items.
> 
> Anyone?
> 

I believe GnomeCanvas will always give widgets exactly their size
request, so just use gtk_widget_size_request () to get the size.

Havoc




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