[gtk+] Update docs



commit e1716611bd6affa0b5cedbf5174f707bb2e39dce
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 5 20:05:46 2014 -0500

    Update docs
    
    Document new fields in GtkTextAttributes, remove redundant comments.

 gtk/gtktextattributes.h |   22 ++++++----------------
 1 files changed, 6 insertions(+), 16 deletions(-)
---
diff --git a/gtk/gtktextattributes.h b/gtk/gtktextattributes.h
index 0a57c69..4ee88c9 100644
--- a/gtk/gtktextattributes.h
+++ b/gtk/gtktextattributes.h
@@ -1,4 +1,4 @@
-/* gtktexttag.c - text tag object
+/* gtktextattributes.h - text attributes
  *
  * Copyright (c) 1992-1994 The Regents of the University of California.
  * Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -155,6 +155,8 @@ struct _GtkTextAppearance
  * @bg_full_height: Background is fit to full line height rather than
  *    baseline +/- ascent/descent (font height).
  * @editable: Can edit this text.
+ * @no_fallback: Whether to disable font fallback.
+ * @letter_spacing: Extra space to insert between graphemes, in Pango units
  *
  * Using #GtkTextAttributes directly should rarely be necessary.
  * It’s primarily useful with gtk_text_iter_get_attributes().
@@ -172,7 +174,6 @@ struct _GtkTextAttributes
   GtkJustification justification;
   GtkTextDirection direction;
 
-  /* Individual chunks of this can be set/unset as a group */
   PangoFontDescription *font;
 
   gdouble font_scale;
@@ -187,37 +188,26 @@ struct _GtkTextAttributes
 
   PangoTabArray *tabs;
 
-  GtkWrapMode wrap_mode;        /* How to handle wrap-around for this tag.
-                                 * Must be GTK_WRAPMODE_CHAR,
-                                 * GTK_WRAPMODE_NONE, GTK_WRAPMODE_WORD
-                                 */
+  GtkWrapMode wrap_mode;
 
   PangoLanguage *language;
 
   /*< private >*/
-  /* Paragraph background */
   GdkColor *pg_bg_color;
 
   /*< public >*/
-  /* hide the text  */
   guint invisible : 1;
-
-  /* Background is fit to full line height rather than
-   * baseline +/- ascent/descent (font height)
-   */
   guint bg_full_height : 1;
-
-  /* can edit this text */
   guint editable : 1;
-
   guint no_fallback: 1;
 
   /*< private >*/
-  /* Paragraph background */
   GdkRGBA *pg_bg_rgba;
 
+  /*< public >*/
   gint letter_spacing;
 
+  /*< private >*/
   guint padding[2];
 };
 


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