gtk: add missing class padding

Sorry for this late ABI break, but the newly added style classes
definitely need padding, so I can just as well add missing padding
globally.
This commit is contained in:
Michael Natterer 2011-01-25 22:29:00 +01:00
parent e521158973
commit 3933f99ed7
15 changed files with 76 additions and 2 deletions

View File

@ -60,6 +60,12 @@ struct _GtkAlignment
struct _GtkAlignmentClass struct _GtkAlignmentClass
{ {
GtkBinClass parent_class; GtkBinClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };

View File

@ -56,7 +56,7 @@ struct _GtkApplicationClass
GApplicationClass parent_class; GApplicationClass parent_class;
/*< private >*/ /*< private >*/
gpointer padding[12]; gpointer padding[16];
}; };
GType gtk_application_get_type (void) G_GNUC_CONST; GType gtk_application_get_type (void) G_GNUC_CONST;

View File

@ -60,6 +60,12 @@ struct _GtkArrow
struct _GtkArrowClass struct _GtkArrowClass
{ {
GtkMiscClass parent_class; GtkMiscClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };

View File

@ -59,6 +59,12 @@ struct _GtkAspectFrame
struct _GtkAspectFrameClass struct _GtkAspectFrameClass
{ {
GtkFrameClass parent_class; GtkFrameClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };

View File

@ -59,6 +59,12 @@ struct _GtkButtonBox
struct _GtkButtonBoxClass struct _GtkButtonBoxClass
{ {
GtkBoxClass parent_class; GtkBoxClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };

View File

@ -60,6 +60,12 @@ struct _GtkBin
struct _GtkBinClass struct _GtkBinClass
{ {
GtkContainerClass parent_class; GtkContainerClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };

View File

@ -52,6 +52,12 @@ struct _GtkCssProvider
struct _GtkCssProviderClass struct _GtkCssProviderClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };
GType gtk_css_provider_get_type (void) G_GNUC_CONST; GType gtk_css_provider_get_type (void) G_GNUC_CONST;

View File

@ -60,6 +60,12 @@ struct _GtkFixed
struct _GtkFixedClass struct _GtkFixedClass
{ {
GtkContainerClass parent_class; GtkContainerClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };
struct _GtkFixedChild struct _GtkFixedChild

View File

@ -58,6 +58,12 @@ struct _GtkIconThemeClass
GObjectClass parent_class; GObjectClass parent_class;
void (* changed) (GtkIconTheme *icon_theme); void (* changed) (GtkIconTheme *icon_theme);
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };
/** /**

View File

@ -60,6 +60,12 @@ struct _GtkMisc
struct _GtkMiscClass struct _GtkMiscClass
{ {
GtkWidgetClass parent_class; GtkWidgetClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };

View File

@ -45,6 +45,12 @@ struct _GtkModifierStyle
struct _GtkModifierStyleClass struct _GtkModifierStyleClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };
GType gtk_modifier_style_get_type (void) G_GNUC_CONST; GType gtk_modifier_style_get_type (void) G_GNUC_CONST;

View File

@ -55,7 +55,7 @@ struct _GtkNumerableIconClass {
GEmblemedIconClass parent_class; GEmblemedIconClass parent_class;
/* padding for future class expansion */ /* padding for future class expansion */
gpointer padding[8]; gpointer padding[16];
}; };
GType gtk_numerable_icon_get_type (void) G_GNUC_CONST; GType gtk_numerable_icon_get_type (void) G_GNUC_CONST;

View File

@ -75,6 +75,8 @@ struct _GtkStatusIconClass
void (*__gtk_reserved1); void (*__gtk_reserved1);
void (*__gtk_reserved2); void (*__gtk_reserved2);
void (*__gtk_reserved3);
void (*__gtk_reserved4);
}; };
GType gtk_status_icon_get_type (void) G_GNUC_CONST; GType gtk_status_icon_get_type (void) G_GNUC_CONST;

View File

@ -52,6 +52,12 @@ struct _GtkStyleContextClass
GObjectClass parent_class; GObjectClass parent_class;
void (* changed) (GtkStyleContext *context); void (* changed) (GtkStyleContext *context);
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };
/* Default set of properties that GtkStyleContext may contain */ /* Default set of properties that GtkStyleContext may contain */

View File

@ -52,6 +52,12 @@ struct _GtkStyleProperties
struct _GtkStylePropertiesClass struct _GtkStylePropertiesClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
}; };
typedef gboolean (* GtkStylePropertyParser) (const gchar *string, typedef gboolean (* GtkStylePropertyParser) (const gchar *string,