Update TextTag and TextView indent Documentation
authorJacob Mealey <jacobmealey.maine@gmail.com>
Sun, 12 Feb 2023 23:12:51 +0000 (23:12 +0000)
committerJacob Mealey <jacobmealey.maine@gmail.com>
Sun, 12 Feb 2023 23:12:51 +0000 (23:12 +0000)
Change the documentation for both to be in line with Pango documentation
specifically regarding hanging indentation.

gtk/gtktexttag.c
gtk/gtktextview.c

index 7d28a8996f06bb76e109f50494a86e69c7ec46bd..9774623b8905a3073815f3aa8fc42a56be5e4767 100644 (file)
@@ -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,
index fe7a63b69efcd8b9cc84b2b7b759a8a6834339ee..271f6422947dd13b771b25e21c63a3b3b4bfbea8 100644 (file)
@@ -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,