[gtk+] GtkWidgetPrivate: Improve struct packing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkWidgetPrivate: Improve struct packing
- Date: Tue, 12 Apr 2011 16:54:05 +0000 (UTC)
commit 304989291d165bcbe39d4656be1c9a67f4a91717
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Apr 12 12:50:30 2011 -0400
GtkWidgetPrivate: Improve struct packing
gtk/gtkwidget.c | 28 +++++++++++++---------------
1 files changed, 13 insertions(+), 15 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index b3cb3a9..6d50d36 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]