forked from AuroraMiddleware/gtk
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:
parent
eed37cd59a
commit
bd6c4a0dec
@ -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];
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user