]> Pileus Git - ~andy/gtk/commit
Use a bitfield for Widget::private_flags, ::state, ::saved_state
authorHavoc Pennington <hp@pobox.com>
Mon, 6 Sep 2010 23:15:51 +0000 (19:15 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 7 Sep 2010 04:13:11 +0000 (00:13 -0400)
commitc50db9c2083926a406ff02c266cd3b29357df614
tree59c7246d7004f4bf7c76c43fa75fa7d2d917949a
parentd5c2cb7bcbdd2c5f9c1523043f2cd252421325c6
Use a bitfield for Widget::private_flags, ::state, ::saved_state

This recovers 10 bits, since state and saved_state as uint8 both
wasted 5 bits. Now we can add 10 more flags.

Also, a possible future patch could just do 1-bit bitfields
for the private flags instead of using manual bit twiddling.

https://bugzilla.gnome.org/show_bug.cgi?id=628884
gtk/gtkwidget.h