[gtk+] GdkX11DragContext: Struct packing improvements



commit 879202b9c2acc629e053000c7efaab616d1dd234
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Apr 12 10:37:51 2011 -0400

    GdkX11DragContext: Struct packing improvements

 gdk/x11/gdkdnd-x11.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c
index fe9892a..80467fa 100644
--- a/gdk/x11/gdkdnd-x11.c
+++ b/gdk/x11/gdkdnd-x11.c
@@ -84,6 +84,9 @@ struct _GdkX11DragContext
   GdkDragAction old_action;    /* The last action we sent to the source */
   GdkDragAction old_actions;   /* The last actions we sent to the source */
   GdkDragAction xdnd_actions;  /* What is currently set in XdndActionList */
+  guint version;               /* Xdnd protocol version */
+
+  GSList *window_caches;
 
   Window dest_xid;             /* The last window we looked up */
   Window drop_xid;             /* The (non-proxied) window that is receiving drops */
@@ -92,11 +95,7 @@ struct _GdkX11DragContext
   guint xdnd_have_actions : 1; /* Whether an XdndActionList was provided */
   guint motif_targets_set : 1; /* Whether we've already set motif initiator info */
   guint drag_status       : 4; /* current status of drag */
-
   guint drop_failed       : 1; /* Whether the drop was unsuccessful */
-  guint version;               /* Xdnd protocol version */
-
-  GSList *window_caches;
 };
 
 struct _GdkX11DragContextClass



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