]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkaspectframe.c
docs: Typo fix
[~andy/gtk] / gtk / gtkaspectframe.c
index 8eac4378074f73bfa6076fd0fa19b54a1128cc31..4b77af282a021f8f5911b3243d3de0a61f772bf5 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.
  */
 
 /*
@@ -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 /