Commit bd6c4a0d 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).

GtkApplication
GtkWidget
GtkContainer
GtkWindow
GtkDialog
GtkApplicationWindow
GtkToolItem
GtkBin
parent eed37cd5
......@@ -65,7 +65,7 @@ struct _GtkApplicationClass
GtkWindow *window);
/*< private >*/
gpointer padding[12];
gpointer padding[8];
};
GDK_AVAILABLE_IN_ALL
......
......@@ -62,7 +62,7 @@ struct _GtkApplicationWindowClass
GtkWindowClass parent_class;
/*< private >*/
gpointer padding[14];
gpointer padding[8];
};
GDK_AVAILABLE_IN_ALL
......
......@@ -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];
};
......
......@@ -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];
};
......
......@@ -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];
};
......
......@@ -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];
};
......
......@@ -339,8 +339,7 @@ struct _GtkWidgetClass
GtkWidgetClassPrivate *priv;
/* Padding for future expansion */
void (*_gtk_reserved7) (void);
gpointer padding[8];
};
......
......@@ -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];
};
/**
......
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