[libhandy] Add padding to public structs



commit 7b5f8750d710983482a566ec0e98927479e4aac9
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Jul 30 18:22:31 2020 +0500

    Add padding to public structs
    
    Fixes https://gitlab.gnome.org/GNOME/libhandy/-/issues/125
    
    Signed-off-by: Alexander Mikhaylenko <alexm gnome org>

 src/hdy-action-row.h         | 3 +++
 src/hdy-application-window.h | 3 +++
 src/hdy-combo-row.h          | 3 +++
 src/hdy-deck.h               | 3 +++
 src/hdy-expander-row.h       | 3 +++
 src/hdy-header-bar.h         | 3 +++
 src/hdy-keypad.h             | 3 +++
 src/hdy-leaflet.h            | 3 +++
 src/hdy-preferences-group.h  | 3 +++
 src/hdy-preferences-page.h   | 3 +++
 src/hdy-preferences-row.h    | 3 +++
 src/hdy-preferences-window.h | 3 +++
 src/hdy-search-bar.h         | 3 +++
 src/hdy-swipeable.h          | 3 +++
 src/hdy-window.h             | 3 +++
 15 files changed, 45 insertions(+)
---
diff --git a/src/hdy-action-row.h b/src/hdy-action-row.h
index 8c37a500..32135a3e 100644
--- a/src/hdy-action-row.h
+++ b/src/hdy-action-row.h
@@ -31,6 +31,9 @@ struct _HdyActionRowClass
   GtkListBoxRowClass parent_class;
 
   void (*activate) (HdyActionRow *self);
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-application-window.h b/src/hdy-application-window.h
index 2a6853ec..ed01eb16 100644
--- a/src/hdy-application-window.h
+++ b/src/hdy-application-window.h
@@ -24,6 +24,9 @@ G_DECLARE_DERIVABLE_TYPE (HdyApplicationWindow, hdy_application_window, HDY, APP
 struct _HdyApplicationWindowClass
 {
   GtkApplicationWindowClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-combo-row.h b/src/hdy-combo-row.h
index 312e4888..68657a0d 100644
--- a/src/hdy-combo-row.h
+++ b/src/hdy-combo-row.h
@@ -56,6 +56,9 @@ typedef gchar * (*HdyComboRowGetEnumValueNameFunc) (HdyEnumValueObject *value,
 struct _HdyComboRowClass
 {
   HdyActionRowClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-deck.h b/src/hdy-deck.h
index 1b1607a5..3c7da182 100644
--- a/src/hdy-deck.h
+++ b/src/hdy-deck.h
@@ -35,6 +35,9 @@ typedef enum {
 struct _HdyDeckClass
 {
   GtkContainerClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-expander-row.h b/src/hdy-expander-row.h
index 7587be16..e54e0ffd 100644
--- a/src/hdy-expander-row.h
+++ b/src/hdy-expander-row.h
@@ -29,6 +29,9 @@ G_DECLARE_DERIVABLE_TYPE (HdyExpanderRow, hdy_expander_row, HDY, EXPANDER_ROW, H
 struct _HdyExpanderRowClass
 {
   HdyPreferencesRowClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-header-bar.h b/src/hdy-header-bar.h
index 26ebab1a..066d8472 100644
--- a/src/hdy-header-bar.h
+++ b/src/hdy-header-bar.h
@@ -48,6 +48,9 @@ typedef enum {
 struct _HdyHeaderBarClass
 {
   GtkContainerClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-keypad.h b/src/hdy-keypad.h
index 79535de3..267feea5 100644
--- a/src/hdy-keypad.h
+++ b/src/hdy-keypad.h
@@ -28,6 +28,9 @@ G_DECLARE_DERIVABLE_TYPE (HdyKeypad, hdy_keypad, HDY, KEYPAD, GtkBin)
 struct _HdyKeypadClass
 {
   GtkBinClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-leaflet.h b/src/hdy-leaflet.h
index d54f46b6..4d9324d7 100644
--- a/src/hdy-leaflet.h
+++ b/src/hdy-leaflet.h
@@ -36,6 +36,9 @@ typedef enum {
 struct _HdyLeafletClass
 {
   GtkContainerClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-preferences-group.h b/src/hdy-preferences-group.h
index 0e272d5e..2a7952cc 100644
--- a/src/hdy-preferences-group.h
+++ b/src/hdy-preferences-group.h
@@ -28,6 +28,9 @@ G_DECLARE_DERIVABLE_TYPE (HdyPreferencesGroup, hdy_preferences_group, HDY, PREFE
 struct _HdyPreferencesGroupClass
 {
   GtkBinClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-preferences-page.h b/src/hdy-preferences-page.h
index 2509109b..158c18c6 100644
--- a/src/hdy-preferences-page.h
+++ b/src/hdy-preferences-page.h
@@ -28,6 +28,9 @@ G_DECLARE_DERIVABLE_TYPE (HdyPreferencesPage, hdy_preferences_page, HDY, PREFERE
 struct _HdyPreferencesPageClass
 {
   GtkBinClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-preferences-row.h b/src/hdy-preferences-row.h
index 7ffb17b8..f5e926b3 100644
--- a/src/hdy-preferences-row.h
+++ b/src/hdy-preferences-row.h
@@ -28,6 +28,9 @@ G_DECLARE_DERIVABLE_TYPE (HdyPreferencesRow, hdy_preferences_row, HDY, PREFERENC
 struct _HdyPreferencesRowClass
 {
   GtkListBoxRowClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-preferences-window.h b/src/hdy-preferences-window.h
index 20eb3742..427a94ae 100644
--- a/src/hdy-preferences-window.h
+++ b/src/hdy-preferences-window.h
@@ -29,6 +29,9 @@ G_DECLARE_DERIVABLE_TYPE (HdyPreferencesWindow, hdy_preferences_window, HDY, PRE
 struct _HdyPreferencesWindowClass
 {
   HdyWindowClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-search-bar.h b/src/hdy-search-bar.h
index a9e88d17..fc6aa72c 100644
--- a/src/hdy-search-bar.h
+++ b/src/hdy-search-bar.h
@@ -24,6 +24,9 @@ G_DECLARE_DERIVABLE_TYPE (HdySearchBar, hdy_search_bar, HDY, SEARCH_BAR, GtkBin)
 struct _HdySearchBarClass
 {
   GtkBinClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-swipeable.h b/src/hdy-swipeable.h
index 3871e81c..9cb6cde7 100644
--- a/src/hdy-swipeable.h
+++ b/src/hdy-swipeable.h
@@ -56,6 +56,9 @@ struct _HdySwipeableInterface
                                             HdyNavigationDirection  navigation_direction,
                                             gboolean                is_drag,
                                             GdkRectangle           *rect);
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL
diff --git a/src/hdy-window.h b/src/hdy-window.h
index 718a65e3..51099cf5 100644
--- a/src/hdy-window.h
+++ b/src/hdy-window.h
@@ -24,6 +24,9 @@ G_DECLARE_DERIVABLE_TYPE (HdyWindow, hdy_window, HDY, WINDOW, GtkWindow)
 struct _HdyWindowClass
 {
   GtkWindowClass parent_class;
+
+  /*< private >*/
+  gpointer padding[4];
 };
 
 HDY_AVAILABLE_IN_ALL


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