summaryrefslogtreecommitdiff
path: root/gtk/gtktextattributes.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-07-29 18:28:56 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-29 21:42:58 -0400
commitc6838fbff0dba67cc067978beb9cd4a2dbe90e5f (patch)
tree7dd6046705e2c41893ff30aaf201aafedc38b781 /gtk/gtktextattributes.h
parent98f9532a22bc37118f5958f795c5167714d31e00 (diff)
downloadgtk+-c6838fbff0dba67cc067978beb9cd4a2dbe90e5f.tar.gz
GtkTextView: Support font features
Add a ::font-features attribute to GtkTextTag, and support font features when inserting Pango markup into a text buffer.
Diffstat (limited to 'gtk/gtktextattributes.h')
-rw-r--r--gtk/gtktextattributes.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/gtk/gtktextattributes.h b/gtk/gtktextattributes.h
index 83a6312bd4..77c70f1a63 100644
--- a/gtk/gtktextattributes.h
+++ b/gtk/gtktextattributes.h
@@ -207,8 +207,23 @@ struct _GtkTextAttributes
/*< public >*/
gint letter_spacing;
+#ifdef __GI_SCANNER__
+ /* The scanner should only see the transparent union, so that its
+ * content does not vary across architectures.
+ */
+ union {
+ gchar *font_features;
+ /*< private >*/
+ guint padding[2];
+ };
+#else
+ gchar *font_features;
+#if (defined(__SIZEOF_INT__) && defined(__SIZEOF_POINTER__)) && (__SIZEOF_INT__ == __SIZEOF_POINTER__)
+ /* unusable, just for ABI compat */
/*< private >*/
- guint padding[2];
+ guint padding[1];
+#endif
+#endif
};
GDK_AVAILABLE_IN_ALL