]> Pileus Git - ~andy/gtk/commitdiff
GtkWidgetPrivate: Improve struct packing
authorMatthias Clasen <mclasen@redhat.com>
Tue, 12 Apr 2011 16:50:30 +0000 (12:50 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 12 Apr 2011 16:50:30 +0000 (12:50 -0400)
gtk/gtkwidget.c

index b3cb3a9c96c21bd7079c70af0694960d3d48def7..6d50d36180866dcecc618b6bda5ac70dbeec8c77 100644 (file)
@@ -367,45 +367,43 @@ struct _GtkWidgetPrivate
   guint have_size_groups      : 1;
 
   /* The widget's name. If the widget does not have a name
-   *  (the name is NULL), then its name (as returned by
-   *  "gtk_widget_get_name") is its class's name.
+   * (the name is NULL), then its name (as returned by
+   * "gtk_widget_get_name") is its class's name.
    * Among other things, the widget name is used to determine
-   *  the style to use for a widget.
+   * the style to use for a widget.
    */
   gchar *name;
 
   /* The style for the widget. The style contains the
-   *  colors the widget should be drawn in for each state
-   *  along with graphics contexts used to draw with and
-   *  the font to use for text.
+   * colors the widget should be drawn in for each state
+   * along with graphics contexts used to draw with and
+   * the font to use for text.
    */
   GtkStyle *style;
   GtkStyleContext *context;
 
-  /* The widget's allocated size.
-   */
+  /* Widget's path for styling */
+  GtkWidgetPath *path;
+
+  /* The widget's allocated size */
   GtkAllocation allocation;
 
   /* The widget's requested sizes */
   SizeRequestCache requests;
 
   /* The widget's window or its parent window if it does
-   *  not have a window. (Which will be indicated by the
-   *  GTK_NO_WINDOW flag being set).
+   * not have a window. (Which will be indicated by the
+   * GTK_NO_WINDOW flag being set).
    */
   GdkWindow *window;
 
-  /* The widget's parent.
-   */
+  /* The widget's parent */
   GtkWidget *parent;
 
 #ifdef G_ENABLE_DEBUG
   /* Number of gtk_widget_push_verify_invariants () */
   guint verifying_invariants_count;
 #endif /* G_ENABLE_DEBUG */
-
-  /* Widget's path for styling */
-  GtkWidgetPath *path;
 };
 
 enum {