Update docs

Document new fields in GtkTextAttributes, remove redundant comments.
This commit is contained in:
Matthias Clasen 2014-12-05 20:05:46 -05:00
parent 888304b172
commit e1716611bd

View File

@ -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.
* Its 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];
};