Commit 3250e703 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Padding review

Ensure that the class structs of all subclassable
types have sufficient padding (standardizing on 8
slots, here).

GtkBox
GtkButton
GtkDrawingArea
GtkFixed
GtkFrame
parent 54530334
Pipeline #82841 passed with stages
in 26 minutes and 30 seconds
......@@ -62,11 +62,7 @@ struct _GtkBoxClass
/*< private >*/
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
gpointer padding[8];
};
......
......@@ -70,11 +70,7 @@ struct _GtkButtonClass
/*< private >*/
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
gpointer padding[8];
};
......
......@@ -75,11 +75,9 @@ struct _GtkDrawingAreaClass
{
GtkWidgetClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
/*< private >*/
gpointer padding[8];
};
......
......@@ -54,11 +54,9 @@ struct _GtkFixedClass
{
GtkContainerClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
/*< private >*/
gpointer padding[8];
};
GDK_AVAILABLE_IN_ALL
......
......@@ -67,11 +67,7 @@ struct _GtkFrameClass
/*< private >*/
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
gpointer padding[8];
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment