[gtk: 1/2] picture: Fix Since and Deprecated annotations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] picture: Fix Since and Deprecated annotations
- Date: Mon, 25 Jul 2022 11:45:45 +0000 (UTC)
commit ef07d1556bfde0bc070e43713c3d037a71fca81c
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Mon Jul 25 12:52:43 2022 +0200
picture: Fix Since and Deprecated annotations
gi-docgen will parse four or more whitespaces of indentation as code blocks,
two whitespaces were used.
This was missing in https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4873.
gtk/gtkpicture.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkpicture.c b/gtk/gtkpicture.c
index fa0b300038..aa8599ebd9 100644
--- a/gtk/gtkpicture.c
+++ b/gtk/gtkpicture.c
@@ -456,6 +456,8 @@ gtk_picture_class_init (GtkPictureClass *class)
* GtkPicture:content-fit: (attributes org.gtk.Property.get=gtk_picture_get_content_fit
org.gtk.Property.set=gtk_picture_set_content_fit)
*
* How the content should be resized to fit inside the `GtkPicture`.
+ *
+ * Since: 4.8
*/
properties[PROP_CONTENT_FIT] =
g_param_spec_enum ("content-fit", NULL, NULL,
@@ -884,9 +886,9 @@ gtk_picture_get_paintable (GtkPicture *self)
* the contents will be stretched over the picture's whole area.
*
* Deprecated: 4.8: Use [method@Gtk.Picture.set_content_fit] instead. If still
- * used, this method will always set the [property@Gtk.Picture:content-fit]
- * property to `GTK_CONTENT_FIT_CONTAIN` if @keep_aspect_ratio is true,
- * otherwise it will set it to `GTK_CONTENT_FIT_FILL`.
+ * used, this method will always set the [property@Gtk.Picture:content-fit]
+ * property to `GTK_CONTENT_FIT_CONTAIN` if @keep_aspect_ratio is true,
+ * otherwise it will set it to `GTK_CONTENT_FIT_FILL`.
*/
void
gtk_picture_set_keep_aspect_ratio (GtkPicture *self,
@@ -907,8 +909,8 @@ gtk_picture_set_keep_aspect_ratio (GtkPicture *self,
* Returns: %TRUE if the self tries to keep the contents' aspect ratio
*
* Deprecated: 4.8: Use [method@Gtk.Picture.get_content_fit] instead. This will
- * now return `FALSE` only if [property@Gtk.Picture:content-fit] is
- * `GTK_CONTENT_FIT_FILL`. Returns `TRUE` otherwise.
+ * now return `FALSE` only if [property@Gtk.Picture:content-fit] is
+ * `GTK_CONTENT_FIT_FILL`. Returns `TRUE` otherwise.
*/
gboolean
gtk_picture_get_keep_aspect_ratio (GtkPicture *self)
@@ -974,6 +976,8 @@ gtk_picture_get_can_shrink (GtkPicture *self)
* Sets how the content should be resized to fit the `GtkPicture`.
*
* See [enum@Gtk.ContentFit] for details.
+ *
+ * Since: 4.8
*/
void
gtk_picture_set_content_fit (GtkPicture *self,
@@ -1008,6 +1012,8 @@ gtk_picture_set_content_fit (GtkPicture *self,
* See [enum@Gtk.ContentFit] for details.
*
* Returns: the content fit mode
+ *
+ * Since: 4.8
*/
GtkContentFit
gtk_picture_get_content_fit (GtkPicture *self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]