summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-08-20 17:41:35 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-08-20 17:41:35 +0000
commit145d6710e7d808fb6ef9925b82176e8703b1fe5d (patch)
tree6d1ed01ca9ab6993a91ca2bd8fe25865be5ff63d /pango
parentd322697a49454149462de0c96f69541fca478d39 (diff)
downloadpango-145d6710e7d808fb6ef9925b82176e8703b1fe5d.tar.gz
Bug 351496 – PangoAnalysis::gravity breaks binary compatibility
2006-08-20 Behdad Esfahbod <behdad@gnome.org> Bug 351496 – PangoAnalysis::gravity breaks binary compatibility * pango/pango-item.h (PangoAnalysis): Use bitfields for level.
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-item.h7
-rw-r--r--pango/pango-layout.h2
2 files changed, 4 insertions, 5 deletions
diff --git a/pango/pango-item.h b/pango/pango-item.h
index 638bc0d1..cf9bfe84 100644
--- a/pango/pango-item.h
+++ b/pango/pango-item.h
@@ -35,10 +35,9 @@ struct _PangoAnalysis
PangoEngineLang *lang_engine;
PangoFont *font;
- guint8 level;
- /* nastiest hack ever. stuff new items in the padding after the guint8 */
- PangoGravity gravity : 8;
- gboolean centered_baseline : 1;
+ guint level : 8;
+ guint gravity : 3; /* PangoGravity */
+ guint centered_baseline : 1; /* gboolean */
PangoLanguage *language;
GSList *extra_attrs;
diff --git a/pango/pango-layout.h b/pango/pango-layout.h
index 06db0244..563c6839 100644
--- a/pango/pango-layout.h
+++ b/pango/pango-layout.h
@@ -75,7 +75,7 @@ struct _PangoLayoutLine
gint length; /* length of line in bytes */
GSList *runs;
guint is_paragraph_start : 1; /* TRUE if this is the first line of the paragraph */
- guint resolved_dir : 3; /* Resolved direction of line */
+ guint resolved_dir : 3; /* Resolved PangoDirection of line */
};
#define PANGO_TYPE_LAYOUT (pango_layout_get_type ())