X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkaspectframe.c;h=4b77af282a021f8f5911b3243d3de0a61f772bf5;hb=ce0675f1fb2582717793ec29b1787039dfbf8437;hp=8eac4378074f73bfa6076fd0fa19b54a1128cc31;hpb=9e81022bf6b7a5c25584b9eeea360cdf38cd6949;p=~andy%2Fgtk diff --git a/gtk/gtkaspectframe.c b/gtk/gtkaspectframe.c index 8eac43780..4b77af282 100644 --- a/gtk/gtkaspectframe.c +++ b/gtk/gtkaspectframe.c @@ -17,9 +17,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ /* @@ -233,8 +231,8 @@ gtk_aspect_frame_get_property (GObject *object, * the #GtkAspectFrame. This ranges from 0.0 (left aligned) * to 1.0 (right aligned) * @yalign: Vertical alignment of the child within the allocation of - * the #GtkAspectFrame. This ranges from 0.0 (left aligned) - * to 1.0 (right aligned) + * the #GtkAspectFrame. This ranges from 0.0 (top aligned) + * to 1.0 (bottom aligned) * @ratio: The desired aspect ratio. * @obey_child: If %TRUE, @ratio is ignored, and the aspect * ratio is taken from the requistion of the child. @@ -274,8 +272,8 @@ gtk_aspect_frame_new (const gchar *label, * the #GtkAspectFrame. This ranges from 0.0 (left aligned) * to 1.0 (right aligned) * @yalign: Vertical alignment of the child within the allocation of - * the #GtkAspectFrame. This ranges from 0.0 (left aligned) - * to 1.0 (right aligned) + * the #GtkAspectFrame. This ranges from 0.0 (top aligned) + * to 1.0 (bottom aligned) * @ratio: The desired aspect ratio. * @obey_child: If %TRUE, @ratio is ignored, and the aspect * ratio is taken from the requistion of the child. @@ -352,8 +350,7 @@ gtk_aspect_frame_compute_child_allocation (GtkFrame *frame, { GtkRequisition child_requisition; - gtk_size_request_get_size (GTK_SIZE_REQUEST (child), - &child_requisition, NULL); + gtk_widget_get_preferred_size (child, &child_requisition, NULL); if (child_requisition.height != 0) { ratio = ((gdouble) child_requisition.width /