summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-12-05 20:05:46 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-12-05 20:10:11 -0500
commite1716611bd6affa0b5cedbf5174f707bb2e39dce (patch)
tree55a800949bf00f120b5cdd81288b388180b3139e
parent888304b172a74cfd6be7be527b540c839c5e1336 (diff)
downloadgtk+-e1716611bd6affa0b5cedbf5174f707bb2e39dce.tar.gz
Update docs
Document new fields in GtkTextAttributes, remove redundant comments.
-rw-r--r--gtk/gtktextattributes.h22
1 files changed, 6 insertions, 16 deletions
diff --git a/gtk/gtktextattributes.h b/gtk/gtktextattributes.h
index 0a57c69bd4..4ee88c977f 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];
};