mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
gtktextattributes: Use an anonymous union instead of arch-testing #ifdef
This avoids having Gtk-3.0.gir differ on 32 vs 64 bit, which causes issues for "multilib" in Fedora/OpenSUSE type systems. See https://bugzilla.gnome.org/show_bug.cgi?id=711153 for more information. https://bugzilla.gnome.org/show_bug.cgi?id=711158
This commit is contained in:
parent
e077660e1e
commit
c9892df362
@ -94,12 +94,10 @@ struct _GtkTextAppearance
|
|||||||
guint inside_selection : 1;
|
guint inside_selection : 1;
|
||||||
guint is_text : 1;
|
guint is_text : 1;
|
||||||
|
|
||||||
|
union {
|
||||||
GdkRGBA *rgba[2];
|
GdkRGBA *rgba[2];
|
||||||
|
guint padding[4];
|
||||||
#if (defined(__SIZEOF_INT__) && defined(__SIZEOF_POINTER__)) && (__SIZEOF_INT__ == __SIZEOF_POINTER__)
|
};
|
||||||
/* unusable, just for ABI compat */
|
|
||||||
guint padding[2];
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user