Padding review

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

GtkApplication
GtkWidget
GtkContainer
GtkWindow
GtkDialog
GtkApplicationWindow
GtkToolItem
GtkBin
This commit is contained in:
Matthias Clasen 2019-05-19 15:41:12 +00:00
parent eed37cd59a
commit bd6c4a0dec
8 changed files with 8 additions and 33 deletions

View File

@ -65,7 +65,7 @@ struct _GtkApplicationClass
GtkWindow *window);
/*< private >*/
gpointer padding[12];
gpointer padding[8];
};
GDK_AVAILABLE_IN_ALL

View File

@ -62,7 +62,7 @@ struct _GtkApplicationWindowClass
GtkWindowClass parent_class;
/*< private >*/
gpointer padding[14];
gpointer padding[8];
};
GDK_AVAILABLE_IN_ALL

View File

@ -60,11 +60,7 @@ struct _GtkBinClass
/*< private >*/
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
gpointer padding[8];
};

View File

@ -89,15 +89,7 @@ struct _GtkContainerClass
/*< private >*/
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
void (*_gtk_reserved5) (void);
void (*_gtk_reserved6) (void);
void (*_gtk_reserved7) (void);
void (*_gtk_reserved8) (void);
gpointer padding[8];
};

View File

@ -128,11 +128,7 @@ struct _GtkDialogClass
/*< private >*/
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
gpointer padding[8];
};

View File

@ -69,11 +69,7 @@ struct _GtkToolItemClass
/*< private >*/
/* Padding for future expansion */
void (* _gtk_reserved1) (void);
void (* _gtk_reserved2) (void);
void (* _gtk_reserved3) (void);
void (* _gtk_reserved4) (void);
gpointer padding[8];
};

View File

@ -339,8 +339,7 @@ struct _GtkWidgetClass
GtkWidgetClassPrivate *priv;
/* Padding for future expansion */
void (*_gtk_reserved7) (void);
gpointer padding[8];
};

View File

@ -81,11 +81,7 @@ struct _GtkWindowClass
gboolean (* close_request) (GtkWindow *window);
/*< private >*/
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
gpointer padding[8];
};
/**