[gtk/ebassi/gidocgen: 168/478] Mark padding fields as private




commit 2091cc6ddf7f0a093959af51d30038d6da5d18f3
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Feb 25 11:35:33 2021 +0000

    Mark padding fields as private
    
    And mention that they should be removed in the next version of GTK.
    Padding fields in interfaces are unnecessary, as they don't contribute
    to the ABI.

 gtk/gtkcolorchooser.h | 3 ++-
 gtk/gtkfontchooser.h  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcolorchooser.h b/gtk/gtkcolorchooser.h
index 0ed0872a08..ac95a1a70b 100644
--- a/gtk/gtkcolorchooser.h
+++ b/gtk/gtkcolorchooser.h
@@ -55,7 +55,8 @@ struct _GtkColorChooserInterface
   void (* color_activated) (GtkColorChooser *chooser,
                             const GdkRGBA   *color);
 
-  /* Padding */
+  /*< private >*/
+  /* Padding; remove in GTK-next */
   gpointer padding[12];
 };
 
diff --git a/gtk/gtkfontchooser.h b/gtk/gtkfontchooser.h
index 323c3e9f96..6afc0f1ad4 100644
--- a/gtk/gtkfontchooser.h
+++ b/gtk/gtkfontchooser.h
@@ -97,7 +97,8 @@ struct _GtkFontChooserIface
                                                  PangoFontMap     *fontmap);
   PangoFontMap *    (* get_font_map)            (GtkFontChooser   *fontchooser);
 
-   /* Padding */
+  /*< private >*/
+  /* Padding; remove in GTK-next */
   gpointer padding[10];
 };
 


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