Mercurial > projects > dwt-linux
diff dwt/internal/c/gtk.d @ 56:002bcca59004
Added tools to verify the struct sized of C binding. Tweaks were necessary.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 12 Jan 2008 01:30:15 +0100 |
parents | 787b5413b0ce |
children | 1f0d924801f4 |
line wrap: on
line diff
--- a/dwt/internal/c/gtk.d Fri Jan 11 15:40:16 2008 +0100 +++ b/dwt/internal/c/gtk.d Sat Jan 12 01:30:15 2008 +0100 @@ -2243,7 +2243,7 @@ ushort requisition; ushort allocation; ushort spacing; -uint bitfield0; +ubyte bitfield0; // uint need_expand // bits 0 .. 1 // uint need_shrink // bits 1 .. 2 // uint expand // bits 2 .. 3 @@ -2367,7 +2367,7 @@ _GObject parent_instance; _GSList * widgets; char mode; -uint bitfield0; +ubyte bitfield0; // uint have_width // bits 0 .. 1 // uint have_height // bits 1 .. 2 // uint ignore_hidden // bits 2 .. 3 @@ -2404,7 +2404,7 @@ _GtkBin container; _GtkWidget * hscrollbar; _GtkWidget * vscrollbar; -uint bitfield0; +ubyte bitfield0; // uint hscrollbar_policy // bits 0 .. 2 // uint vscrollbar_policy // bits 2 .. 4 // uint hscrollbar_visible // bits 4 .. 5 @@ -2732,7 +2732,7 @@ _GdkDrawable * plug_window; _GtkWidget * plug_widget; short xembed_version; -uint bitfield0; +ubyte bitfield0; // uint same_app // bits 0 .. 1 // uint focus_in // bits 1 .. 2 // uint have_size // bits 2 .. 3 @@ -3459,7 +3459,7 @@ _GdkDrawable * pixmap_opened; _GdkDrawable * mask_opened; ushort level; -uint bitfield0; +ubyte bitfield0; // uint is_leaf // bits 0 .. 1 // uint expanded // bits 1 .. 2 } @@ -3718,7 +3718,7 @@ _GtkWidget * list; uint entry_change_id; uint list_change_id; -uint bitfield0; +ubyte bitfield0; // uint value_in_list // bits 0 .. 1 // uint ok_if_empty // bits 1 .. 2 // uint case_sensitive // bits 2 .. 3 @@ -4681,7 +4681,7 @@ struct _GtkBoxChild { _GtkWidget * widget; ushort padding; -uint bitfield0; +ubyte bitfield0; // uint expand // bits 0 .. 1 // uint fill // bits 1 .. 2 // uint pack // bits 2 .. 3 @@ -4694,7 +4694,7 @@ _GtkContainer container; _GList * children; short spacing; -uint bitfield0; +ubyte bitfield0; // uint homogeneous // bits 0 .. 1 } struct _GtkAssistantClass {