[gtk/ebassi/aspect-frame-doc: 3/3] Document limits of gtk_aspect_frame_get_ratio()




commit 39e07a8d5640f76f418c3e77d87543c019313e31
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Jan 12 12:28:18 2021 +0000

    Document limits of gtk_aspect_frame_get_ratio()
    
    The GtkAspectFrame:ratio getter will return the value set, not the
    actual ratio computed in case GtkAspectFrame:obey-child is TRUE.

 gtk/gtkaspectframe.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkaspectframe.c b/gtk/gtkaspectframe.c
index 23d1ea8692..24938519fd 100644
--- a/gtk/gtkaspectframe.c
+++ b/gtk/gtkaspectframe.c
@@ -458,7 +458,8 @@ gtk_aspect_frame_set_ratio (GtkAspectFrame *self,
  * gtk_aspect_frame_get_ratio:
  * @self: a #GtkAspectFrame
  *
- * Returns the desired aspect ratio of the child.
+ * Returns the desired aspect ratio of the child set using
+ * gtk_aspect_frame_set_ratio().
  *
  * Returns: the desired aspect ratio
  */


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