From: Jacob Mealey Date: Sun, 12 Feb 2023 23:12:51 +0000 (+0000) Subject: Update TextTag and TextView indent Documentation X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~6^2~85^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=272a40a01a0f2f1b74cd3051ee2da5d6eabcaab6;p=gtk4.git Update TextTag and TextView indent Documentation Change the documentation for both to be in line with Pango documentation specifically regarding hanging indentation. --- diff --git a/gtk/gtktexttag.c b/gtk/gtktexttag.c index 7d28a8996f..9774623b89 100644 --- a/gtk/gtktexttag.c +++ b/gtk/gtktexttag.c @@ -485,7 +485,12 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) /** * GtkTextTag:indent: * - * Amount to indent the paragraph, in pixels. + * Amount to indent the paragraph, in pixels. + * + * A negative value of indent will produce a hanging indentation. + * That is, the first line will have the full width, and subsequent + * lines will be indented by the absolute value of indent. + * */ g_object_class_install_property (object_class, PROP_INDENT, diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index fe7a63b69e..271f642294 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -998,6 +998,11 @@ gtk_text_view_class_init (GtkTextViewClass *klass) * GtkTextView:indent: (attributes org.gtk.Property.get=gtk_text_view_get_indent org.gtk.Property.set=gtk_text_view_set_indent) * * Amount to indent the paragraph, in pixels. + * + * A negative value of indent will produce a hanging indentation. + * That is, the first line will have the full width, and subsequent + * lines will be indented by the absolute value of indent. + * */ g_object_class_install_property (gobject_class, PROP_INDENT,