Re: How to get widget size?
- From: Havoc Pennington <hp redhat com>
- To: "David J. Topper" <topper virginia edu>
- Cc: gtk-list gnome org
- Subject: Re: How to get widget size?
- Date: 22 May 2001 23:08:21 -0400
"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]