diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-05-03 02:03:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-05-03 02:03:25 +0000 |
commit | 89b6793472dd245ccf6a543e5005eaedf95daa5a (patch) | |
tree | f925a8c0c17ff965a6a1e8ede1a4cb9111a3c56d /gtk/packet_list_store.h | |
parent | b42fab3a61e7cd30fdb080a8d325c4d53e466fc6 (diff) |
One bit suffices for the "columnized" and "colorized" flags in the
packet list store, and there's one PacketListRecord for every packet, so
that can save some space...
...especially if we move them after all the pointers, rather than before
the pointers, so they don't collectively take up 8 bytes on an LP64 or
LLP64 platform due to pointers having to be 8-byte aligned.
svn path=/trunk/; revision=36968
Diffstat (limited to 'gtk/packet_list_store.h')
-rw-r--r-- | gtk/packet_list_store.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/packet_list_store.h b/gtk/packet_list_store.h index 3d5f14ce65..ee62e3204a 100644 --- a/gtk/packet_list_store.h +++ b/gtk/packet_list_store.h @@ -57,11 +57,6 @@ typedef struct _PacketListClass PacketListClass; /** PacketListRecord: represents a row */ struct _PacketListRecord { - /** Has this record been columnized? */ - gboolean columnized; - /** Has this record been colorized? */ - gboolean colorized; - /** The column text for some columns */ gchar **col_text; /**< The length of the column text strings in 'col_text' */ @@ -69,6 +64,11 @@ struct _PacketListRecord frame_data *fdata; + /** Has this record been columnized? */ + gboolean columnized:1; + /** Has this record been colorized? */ + gboolean colorized:1; + /* admin stuff used by the custom list model */ /** position within the physical array */ guint physical_pos; |