summaryrefslogtreecommitdiff
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
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.
-rw-r--r--ChangeLog6
-rw-r--r--pango/pango-item.h7
-rw-r--r--pango/pango-layout.h2
3 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 8f27ba2a..6f044da6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-08-20 Behdad Esfahbod <behdad@gnome.org>
+
+ Bug 351496 – PangoAnalysis::gravity breaks binary compatibility
+
+ * pango/pango-item.h (PangoAnalysis): Use bitfields for level.
+
2006-08-17 Hans Breuer <hans@breuer.org>
* pango/makefile.msc pango/pango.def : updated
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 ())