[gtksourceview] Add padding for future expansion in the Class structures



commit 0c5c22d0d3de6a7d24e1fb5843f206565468e19c
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Nov 5 17:47:03 2016 +0100

    Add padding for future expansion in the Class structures
    
    20 for classes with already a lot of signals, especially for those where
    padding was missing during GSV 3.
    
    10 for other classes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=737364

 gtksourceview/gtksourcebuffer.h                   |    4 +---
 gtksourceview/gtksourcecompletion.h               |    2 ++
 gtksourceview/gtksourcecompletioncontext.h        |    4 +---
 gtksourceview/gtksourcecompletioninfo.h           |    2 ++
 gtksourceview/gtksourcecompletionitem.h           |    2 ++
 gtksourceview/gtksourcegutter.h                   |    2 ++
 gtksourceview/gtksourcegutterrenderer.h           |    2 ++
 gtksourceview/gtksourcegutterrendererpixbuf.h     |    2 +-
 gtksourceview/gtksourcegutterrenderertext.h       |    2 +-
 gtksourceview/gtksourcelanguage.h                 |    3 +--
 gtksourceview/gtksourcelanguagemanager.h          |    5 +----
 gtksourceview/gtksourcemark.h                     |    3 +--
 gtksourceview/gtksourcemarkattributes.h           |    2 +-
 gtksourceview/gtksourceprintcompositor.h          |    3 +--
 gtksourceview/gtksourceregion.h                   |    2 +-
 gtksourceview/gtksourcestylescheme.h              |    3 +--
 gtksourceview/gtksourcestyleschemechooserbutton.h |    2 ++
 gtksourceview/gtksourcestyleschemechooserwidget.h |    2 ++
 gtksourceview/gtksourcestyleschememanager.h       |    5 +----
 gtksourceview/gtksourceview.h                     |    1 +
 20 files changed, 27 insertions(+), 26 deletions(-)
---
diff --git a/gtksourceview/gtksourcebuffer.h b/gtksourceview/gtksourcebuffer.h
index 577957c..d1d27b1 100644
--- a/gtksourceview/gtksourcebuffer.h
+++ b/gtksourceview/gtksourcebuffer.h
@@ -115,9 +115,7 @@ struct _GtkSourceBufferClass
                                 GtkSourceBracketMatchType  state);
 
        /* Padding for future expansion */
-       void (*_gtk_source_reserved1) (void);
-       void (*_gtk_source_reserved2) (void);
-       void (*_gtk_source_reserved3) (void);
+       gpointer padding[20];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcecompletion.h b/gtksourceview/gtksourcecompletion.h
index bf02d97..3b1df69 100644
--- a/gtksourceview/gtksourcecompletion.h
+++ b/gtksourceview/gtksourcecompletion.h
@@ -97,6 +97,8 @@ struct _GtkSourceCompletionClass
                                                         GtkScrollStep                step,
                                                         gint                         num);
        void            (* activate_proposal)           (GtkSourceCompletion         *completion);
+
+       gpointer padding[20];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcecompletioncontext.h b/gtksourceview/gtksourcecompletioncontext.h
index f6a1899..58ee96b 100644
--- a/gtksourceview/gtksourcecompletioncontext.h
+++ b/gtksourceview/gtksourcecompletioncontext.h
@@ -70,9 +70,7 @@ struct _GtkSourceCompletionContextClass {
        void (*cancelled)       (GtkSourceCompletionContext          *context);
 
        /* Padding for future expansion */
-       void (*_gtk_source_reserved1) (void);
-       void (*_gtk_source_reserved2) (void);
-       void (*_gtk_source_reserved3) (void);
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcecompletioninfo.h b/gtksourceview/gtksourcecompletioninfo.h
index e5fc8f9..6e7d8a4 100644
--- a/gtksourceview/gtksourcecompletioninfo.h
+++ b/gtksourceview/gtksourcecompletioninfo.h
@@ -53,6 +53,8 @@ typedef struct _GtkSourceCompletionInfoClass GtkSourceCompletionInfoClass;
 struct _GtkSourceCompletionInfoClass
 {
        GtkWindowClass parent_class;
+
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcecompletionitem.h b/gtksourceview/gtksourcecompletionitem.h
index 87647f7..86471aa 100644
--- a/gtksourceview/gtksourcecompletionitem.h
+++ b/gtksourceview/gtksourcecompletionitem.h
@@ -50,6 +50,8 @@ struct _GtkSourceCompletionItem {
 
 struct _GtkSourceCompletionItemClass {
        GObjectClass parent_class;
+
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcegutter.h b/gtksourceview/gtksourcegutter.h
index 728285d..c8008ed 100644
--- a/gtksourceview/gtksourcegutter.h
+++ b/gtksourceview/gtksourcegutter.h
@@ -51,6 +51,8 @@ struct _GtkSourceGutter
 struct _GtkSourceGutterClass
 {
        GObjectClass parent_class;
+
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcegutterrenderer.h b/gtksourceview/gtksourcegutterrenderer.h
index 54187b5..7b7ad9b 100644
--- a/gtksourceview/gtksourcegutterrenderer.h
+++ b/gtksourceview/gtksourcegutterrenderer.h
@@ -150,6 +150,8 @@ struct _GtkSourceGutterRendererClass
                                     GtkTextIter                  *start,
                                     GtkTextIter                  *end,
                                     GtkSourceGutterRendererState  state);
+
+       gpointer padding[20];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcegutterrendererpixbuf.h b/gtksourceview/gtksourcegutterrendererpixbuf.h
index 66b57ec..4735318 100644
--- a/gtksourceview/gtksourcegutterrendererpixbuf.h
+++ b/gtksourceview/gtksourcegutterrendererpixbuf.h
@@ -57,7 +57,7 @@ struct _GtkSourceGutterRendererPixbufClass
        /*< private >*/
        GtkSourceGutterRendererClass parent_class;
 
-       /*< public >*/
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcegutterrenderertext.h b/gtksourceview/gtksourcegutterrenderertext.h
index f03a017..0b257d7 100644
--- a/gtksourceview/gtksourcegutterrenderertext.h
+++ b/gtksourceview/gtksourcegutterrenderertext.h
@@ -57,7 +57,7 @@ struct _GtkSourceGutterRendererTextClass
        /*< private >*/
        GtkSourceGutterRendererClass parent_class;
 
-       /*< public >*/
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcelanguage.h b/gtksourceview/gtksourcelanguage.h
index a0f8434..878ca76 100644
--- a/gtksourceview/gtksourcelanguage.h
+++ b/gtksourceview/gtksourcelanguage.h
@@ -54,8 +54,7 @@ struct _GtkSourceLanguageClass
        GObjectClass parent_class;
 
        /* Padding for future expansion */
-       void (*_gtk_source_reserved1) (void);
-       void (*_gtk_source_reserved2) (void);
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcelanguagemanager.h b/gtksourceview/gtksourcelanguagemanager.h
index be09925..001830b 100644
--- a/gtksourceview/gtksourcelanguagemanager.h
+++ b/gtksourceview/gtksourcelanguagemanager.h
@@ -54,10 +54,7 @@ struct _GtkSourceLanguageManagerClass
        GObjectClass parent_class;
 
        /* Padding for future expansion */
-       void (*_gtk_source_reserved1) (void);
-       void (*_gtk_source_reserved2) (void);
-       void (*_gtk_source_reserved3) (void);
-       void (*_gtk_source_reserved4) (void);
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcemark.h b/gtksourceview/gtksourcemark.h
index fd2e940..6ec0742 100644
--- a/gtksourceview/gtksourcemark.h
+++ b/gtksourceview/gtksourcemark.h
@@ -54,8 +54,7 @@ struct _GtkSourceMarkClass
        GtkTextMarkClass parent_class;
 
        /* Padding for future expansion */
-       void (*_gtk_source_reserved1) (void);
-       void (*_gtk_source_reserved2) (void);
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcemarkattributes.h b/gtksourceview/gtksourcemarkattributes.h
index ca0ed46..dc15bb4 100644
--- a/gtksourceview/gtksourcemarkattributes.h
+++ b/gtksourceview/gtksourcemarkattributes.h
@@ -57,7 +57,7 @@ struct _GtkSourceMarkAttributesClass
        /*< private >*/
        GObjectClass parent_class;
 
-       /*< public >*/
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourceprintcompositor.h b/gtksourceview/gtksourceprintcompositor.h
index 0127d1b..26c7122 100644
--- a/gtksourceview/gtksourceprintcompositor.h
+++ b/gtksourceview/gtksourceprintcompositor.h
@@ -54,8 +54,7 @@ struct _GtkSourcePrintCompositorClass
        GObjectClass parent_class;
 
        /* Padding for future expansion */
-       void (*_gtk_source_reserved1) (void);
-       void (*_gtk_source_reserved2) (void);
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourceregion.h b/gtksourceview/gtksourceregion.h
index d10c871..1d233bc 100644
--- a/gtksourceview/gtksourceregion.h
+++ b/gtksourceview/gtksourceregion.h
@@ -44,7 +44,7 @@ struct _GtkSourceRegionClass
        GObjectClass parent_class;
 
        /* Padding for future expansion */
-       gpointer padding[8];
+       gpointer padding[10];
 };
 
 /**
diff --git a/gtksourceview/gtksourcestylescheme.h b/gtksourceview/gtksourcestylescheme.h
index 454a582..b9be2d9 100644
--- a/gtksourceview/gtksourcestylescheme.h
+++ b/gtksourceview/gtksourcestylescheme.h
@@ -52,8 +52,7 @@ struct _GtkSourceStyleSchemeClass
        GObjectClass base_class;
 
        /* Padding for future expansion */
-       void (*_gtk_source_reserved1) (void);
-       void (*_gtk_source_reserved2) (void);
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourcestyleschemechooserbutton.h 
b/gtksourceview/gtksourcestyleschemechooserbutton.h
index 80fa83c..06fe648 100644
--- a/gtksourceview/gtksourcestyleschemechooserbutton.h
+++ b/gtksourceview/gtksourcestyleschemechooserbutton.h
@@ -49,6 +49,8 @@ struct _GtkSourceStyleSchemeChooserButton
 struct _GtkSourceStyleSchemeChooserButtonClass
 {
        GtkButtonClass parent;
+
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_3_16
diff --git a/gtksourceview/gtksourcestyleschemechooserwidget.h 
b/gtksourceview/gtksourcestyleschemechooserwidget.h
index 9fe6949..3e4242b 100644
--- a/gtksourceview/gtksourcestyleschemechooserwidget.h
+++ b/gtksourceview/gtksourcestyleschemechooserwidget.h
@@ -49,6 +49,8 @@ struct _GtkSourceStyleSchemeChooserWidget
 struct _GtkSourceStyleSchemeChooserWidgetClass
 {
        GtkBinClass parent;
+
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_3_16
diff --git a/gtksourceview/gtksourcestyleschememanager.h b/gtksourceview/gtksourcestyleschememanager.h
index 966d9a1..c7ad78c 100644
--- a/gtksourceview/gtksourcestyleschememanager.h
+++ b/gtksourceview/gtksourcestyleschememanager.h
@@ -53,10 +53,7 @@ struct _GtkSourceStyleSchemeManagerClass
        GObjectClass parent_class;
 
        /* Padding for future expansion */
-       void (*_gtk_source_reserved1) (void);
-       void (*_gtk_source_reserved2) (void);
-       void (*_gtk_source_reserved3) (void);
-       void (*_gtk_source_reserved4) (void);
+       gpointer padding[10];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL
diff --git a/gtksourceview/gtksourceview.h b/gtksourceview/gtksourceview.h
index 27ac03d..d83dc90 100644
--- a/gtksourceview/gtksourceview.h
+++ b/gtksourceview/gtksourceview.h
@@ -114,6 +114,7 @@ struct _GtkSourceViewClass
                            gint           step);
 
        /* Padding for future expansion */
+       gpointer padding[20];
 };
 
 GTK_SOURCE_AVAILABLE_IN_ALL


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]