[gtk+] Move GtkWidgetAuxInfo struct to private headers



commit f1414a125f006b1131c89e9b723f90f842e95a20
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Sep 12 18:36:32 2015 -0400

    Move GtkWidgetAuxInfo struct to private headers
    
    There's no API returning such a struct, it is entirely internal.
    Therefore, don't expose it in public headers.

 gtk/gtkwidget.h        |   20 --------------------
 gtk/gtkwidgetprivate.h |   21 +++++++++++++++++++++
 2 files changed, 21 insertions(+), 20 deletions(-)
---
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index a2366d0..c725fcb 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -66,7 +66,6 @@ typedef enum
 typedef struct _GtkWidgetPrivate       GtkWidgetPrivate;
 typedef struct _GtkWidgetClass        GtkWidgetClass;
 typedef struct _GtkWidgetClassPrivate  GtkWidgetClassPrivate;
-typedef struct _GtkWidgetAuxInfo       GtkWidgetAuxInfo;
 
 /**
  * GtkAllocation:
@@ -609,25 +608,6 @@ struct _GtkWidgetClass
   void (*_gtk_reserved7) (void);
 };
 
-/**
- * GtkWidgetAuxInfo:
- * @width: the widget’s width
- * @height: the widget’s height
- * @halign: the widget’s horizontal alignment
- * @valign: the widget’s horizontal alignment
- * @margin: the widget’s #GtkBorder margins
- *
- */
-struct _GtkWidgetAuxInfo
-{
-  gint width;
-  gint height;
-
-  guint   halign : 4;
-  guint   valign : 4;
-
-  GtkBorder margin;
-};
 
 GDK_AVAILABLE_IN_ALL
 GType     gtk_widget_get_type            (void) G_GNUC_CONST;
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index 6848806..55ec214 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -36,6 +36,27 @@ G_BEGIN_DECLS
 
 #define GTK_STATE_FLAGS_BITS 12
 
+/**
+ * GtkWidgetAuxInfo:
+ * @width: the widget’s width
+ * @height: the widget’s height
+ * @halign: the widget’s horizontal alignment
+ * @valign: the widget’s horizontal alignment
+ * @margin: the widget’s #GtkBorder margins
+ *
+ */
+typedef struct _GtkWidgetAuxInfo GtkWidgetAuxInfo;
+struct _GtkWidgetAuxInfo
+{
+  gint width;
+  gint height;
+
+  guint   halign : 4;
+  guint   valign : 4;
+
+  GtkBorder margin;
+};
+
 struct _GtkWidgetPrivate
 {
   /* The state of the widget. Needs to be able to hold all GtkStateFlags bits


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