Re: Geeting GtkWidget's allocation
- From: Havoc Pennington <hp redhat com>
- To: "Padraig O'Briain" <Padraig Obriain Sun COM>
- Cc: gtk-devel-list gnome org
- Subject: Re: Geeting GtkWidget's allocation
- Date: 12 Mar 2001 10:04:34 -0500
"Padraig O'Briain" <Padraig Obriain Sun COM> writes:
> When attempting to implement the get_bounds method for the AccessibleComponent
> interface I found myself writing the following code:
>
> *x = widget->allocation.x;
> *y = widget->allocation.y;
> *width = widget->allocation.width;
> *height = widget->allocation.height;
>
> Should I be doing this or should there be a gtk_widget_get_allocation function?
>
Nope it's normal to do this. So much code relies on it that we can't
ever change widget->allocation anyway.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]