[gtk+/rgba-texttags] Fix ABI compat



commit b726448f295ae3ee3ab802d1c1967f354ccc7ea5
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri May 6 16:28:05 2011 -0400

    Fix ABI compat
    
    Make GtkTextTextAttributes stay the same size. This currently
    uses gcc builtin defines. If that is an issue, we can switch
    to using GLIB_SIZEOF_ defines, after adding one for ints.

 gtk/gtktextattributes.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextattributes.h b/gtk/gtktextattributes.h
index 87b0b8a..12c1af7 100644
--- a/gtk/gtktextattributes.h
+++ b/gtk/gtktextattributes.h
@@ -104,8 +104,10 @@ struct _GtkTextAppearance
 
   GdkRGBA *rgba[2];
 
-  /*< private >*/
+#if __SIZEOF_INT__ == __SIZEOF_POINTER__
+  /* unusable, just for ABI compat */
   guint padding[2];
+#endif
 };
 
 struct _GtkTextAttributes



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