diff options
author | William Hua <william.hua@canonical.com> | 2015-12-17 12:18:03 -0500 |
---|---|---|
committer | William Hua <william.hua@canonical.com> | 2015-12-17 12:56:35 -0500 |
commit | 5190d010d95010a845715c719c3b85a75e0c513a (patch) | |
tree | 28412100394c80da49843a21198028de4f30d5cf | |
parent | 8c355d8fe671b5158f45d66d2973d587fa1d8602 (diff) | |
download | gtk+-5190d010d95010a845715c719c3b85a75e0c513a.tar.gz |
gtkborder: restore original struct definition
We're going to add back the original struct definition removed by
a6e4de28, because using the typedef breaks all sorts of things like
gtkmm and WebKit, and having separate struct definitions allows us to
change the types in GdkBorder from gint16s to gints without breaking
ABI.
-rw-r--r-- | gtk/gtkborder.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/gtkborder.h b/gtk/gtkborder.h index 6df53aac3e..adfa29e764 100644 --- a/gtk/gtkborder.h +++ b/gtk/gtkborder.h @@ -34,6 +34,8 @@ G_BEGIN_DECLS +typedef struct _GtkBorder GtkBorder; + #define GTK_TYPE_BORDER (gtk_border_get_type ()) /** @@ -46,7 +48,13 @@ G_BEGIN_DECLS * A struct that specifies a border around a rectangular area * that can be of different width on each side. */ -typedef GdkBorder GtkBorder; +struct _GtkBorder +{ + gint16 left; + gint16 right; + gint16 top; + gint16 bottom; +}; GDK_AVAILABLE_IN_ALL GType gtk_border_get_type (void) G_GNUC_CONST; |