diff --git a/ChangeLog b/ChangeLog index 8166b4a03..fcb025ee9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-01-05 Mike Kestner + + * generator/Field.cs : deal with LPGen/LPUGen fields. + +2005-01-05 Mike Kestner + + * gtk/gtk-api.raw : regen. + * sources/gtk-sharp-sources.xml : exclude gtkiconthemeparser.h. + [Fixes #70898] + 2005-01-05 Mike Kestner * gtk/Gtk.metadata : hide some internal Image*Data structs. diff --git a/doc/en/Gda/Numeric.xml b/doc/en/Gda/Numeric.xml index a01fb50ad..5c6c22ec3 100644 --- a/doc/en/Gda/Numeric.xml +++ b/doc/en/Gda/Numeric.xml @@ -62,30 +62,30 @@ - - Field + + Property System.Int64 - - + To be added + a To be added - - Field + + Property System.Int64 - - + To be added + a To be added - \ No newline at end of file + diff --git a/doc/en/Gda/Time.xml b/doc/en/Gda/Time.xml index b6220eb72..c15fd1851 100644 --- a/doc/en/Gda/Time.xml +++ b/doc/en/Gda/Time.xml @@ -87,7 +87,7 @@ To be added - + Field @@ -100,5 +100,18 @@ To be added + + + Property + + System.Int64 + + + + To be added + a + To be added + + \ No newline at end of file diff --git a/doc/en/Gda/Timestamp.xml b/doc/en/Gda/Timestamp.xml index 937e35e9c..9b8909e2b 100644 --- a/doc/en/Gda/Timestamp.xml +++ b/doc/en/Gda/Timestamp.xml @@ -127,30 +127,30 @@ - - Field + + Property System.UInt64 - - + To be added + a To be added - - Field + + Property System.Int64 - - + To be added + a To be added - \ No newline at end of file + diff --git a/doc/en/Gda/Value.xml b/doc/en/Gda/Value.xml index b127b7431..e120ff540 100644 --- a/doc/en/Gda/Value.xml +++ b/doc/en/Gda/Value.xml @@ -1167,19 +1167,6 @@ To be added - - - Field - - System.Int64 - - - - - To be added - To be added - - Method @@ -1209,5 +1196,18 @@ To be added + + + Property + + System.Int64 + + + + To be added + a + To be added + + diff --git a/doc/en/Gnome.Vfs/XferProgressInfo.xml b/doc/en/Gnome.Vfs/XferProgressInfo.xml index ef4947e89..615ab75f3 100644 --- a/doc/en/Gnome.Vfs/XferProgressInfo.xml +++ b/doc/en/Gnome.Vfs/XferProgressInfo.xml @@ -96,84 +96,6 @@ To be added - - - Field - - System.UInt64 - - - - - To be added - To be added - - - - - Field - - System.UInt64 - - - - - To be added - To be added - - - - - Field - - System.Int64 - - - - - To be added - To be added - - - - - Field - - System.Int64 - - - - - To be added - To be added - - - - - Field - - System.Int64 - - - - - To be added - To be added - - - - - Field - - System.Int64 - - - - - To be added - To be added - - Field @@ -229,5 +151,83 @@ To be added + + + Property + + System.UInt64 + + + + To be added + a + To be added + + + + + Property + + System.UInt64 + + + + To be added + a + To be added + + + + + Property + + System.Int64 + + + + To be added + a + To be added + + + + + Property + + System.Int64 + + + + To be added + a + To be added + + + + + Property + + System.Int64 + + + + To be added + a + To be added + + + + + Property + + System.Int64 + + + + To be added + a + To be added + + - \ No newline at end of file + diff --git a/doc/en/Gtk/IconThemeFile.xml b/doc/en/Gtk/IconThemeFile.xml deleted file mode 100644 index 1ca379e01..000000000 --- a/doc/en/Gtk/IconThemeFile.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - gtk-sharp - [00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 71 EB 6C 55 75 52 9C BF 72 44 F7 A6 EA 05 62 84 F9 EA E0 3B CF F2 CC 13 2C 9C 49 0A B3 09 EA B0 B5 6B CE 44 9D F5 03 D9 C0 A8 1E 52 05 85 CD BE 70 E2 FB 90 43 4B AC 04 FA 62 22 A8 00 98 B7 A1 A7 B3 AF 99 1A 41 23 24 BB 43 25 F6 B8 65 BB 64 EB F6 D1 C2 06 D5 73 2D DF BC 70 A7 38 9E E5 3E 0C 24 6E 32 79 74 1A D0 05 03 E4 98 42 E1 9B F3 7B 19 8B 40 21 26 CB 36 89 C2 EA 64 96 A4 7C B4] - 2.0.0.0 - neutral - - - Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - - Do not use. - - - - GLib.Opaque - - - - GLib.IWrapper - - - - - - - Constructor - - - - - - Public constructor for internal use only. Do not use. - a - a - - - - - diff --git a/doc/en/Gtk/IconThemeFileLineFunc.xml b/doc/en/Gtk/IconThemeFileLineFunc.xml deleted file mode 100644 index 3b1a4aa56..000000000 --- a/doc/en/Gtk/IconThemeFileLineFunc.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - gtk-sharp - [00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 71 EB 6C 55 75 52 9C BF 72 44 F7 A6 EA 05 62 84 F9 EA E0 3B CF F2 CC 13 2C 9C 49 0A B3 09 EA B0 B5 6B CE 44 9D F5 03 D9 C0 A8 1E 52 05 85 CD BE 70 E2 FB 90 43 4B AC 04 FA 62 22 A8 00 98 B7 A1 A7 B3 AF 99 1A 41 23 24 BB 43 25 F6 B8 65 BB 64 EB F6 D1 C2 06 D5 73 2D DF BC 70 A7 38 9E E5 3E 0C 24 6E 32 79 74 1A D0 05 03 E4 98 42 E1 9B F3 7B 19 8B 40 21 26 CB 36 89 C2 EA 64 96 A4 7C B4] - 2.0.0.0 - neutral - - - Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - - Delegate for handling a line of an icon theme file. - - - - System.Delegate - - - - System.ICloneable - - - System.Runtime.Serialization.ISerializable - - - - - - System.Void - - - - - - - - diff --git a/doc/en/Gtk/IconThemeFileParseError.xml b/doc/en/Gtk/IconThemeFileParseError.xml deleted file mode 100644 index 2cd77ffb6..000000000 --- a/doc/en/Gtk/IconThemeFileParseError.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - gtk-sharp - [00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 71 EB 6C 55 75 52 9C BF 72 44 F7 A6 EA 05 62 84 F9 EA E0 3B CF F2 CC 13 2C 9C 49 0A B3 09 EA B0 B5 6B CE 44 9D F5 03 D9 C0 A8 1E 52 05 85 CD BE 70 E2 FB 90 43 4B AC 04 FA 62 22 A8 00 98 B7 A1 A7 B3 AF 99 1A 41 23 24 BB 43 25 F6 B8 65 BB 64 EB F6 D1 C2 06 D5 73 2D DF BC 70 A7 38 9E E5 3E 0C 24 6E 32 79 74 1A D0 05 03 E4 98 42 E1 9B F3 7B 19 8B 40 21 26 CB 36 89 C2 EA 64 96 A4 7C B4] - 2.0.0.0 - neutral - - - Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - - Possible errors found while parsing an icon theme file. - - - - System.Enum - - - - System.IComparable - - - System.IConvertible - - - System.IFormattable - - - - - - - Field - - Gtk.IconThemeFileParseError - - - - - There was an error in the file syntax. - - - - - - Field - - Gtk.IconThemeFileParseError - - - - - The escapes in the file were invalid. - - - - - - Field - - Gtk.IconThemeFileParseError - - - - - The file contained invalid characters. - - - - - - Field - - System.Int32 - - - - - Internal field. - Do not use. - - - - diff --git a/doc/en/Gtk/IconThemeFileSectionFunc.xml b/doc/en/Gtk/IconThemeFileSectionFunc.xml deleted file mode 100644 index 66a034085..000000000 --- a/doc/en/Gtk/IconThemeFileSectionFunc.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - gtk-sharp - [00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 71 EB 6C 55 75 52 9C BF 72 44 F7 A6 EA 05 62 84 F9 EA E0 3B CF F2 CC 13 2C 9C 49 0A B3 09 EA B0 B5 6B CE 44 9D F5 03 D9 C0 A8 1E 52 05 85 CD BE 70 E2 FB 90 43 4B AC 04 FA 62 22 A8 00 98 B7 A1 A7 B3 AF 99 1A 41 23 24 BB 43 25 F6 B8 65 BB 64 EB F6 D1 C2 06 D5 73 2D DF BC 70 A7 38 9E E5 3E 0C 24 6E 32 79 74 1A D0 05 03 E4 98 42 E1 9B F3 7B 19 8B 40 21 26 CB 36 89 C2 EA 64 96 A4 7C B4] - 2.0.0.0 - neutral - - - Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - - Delegate for handling a section of an icon theme file. - - - - System.Delegate - - - - System.ICloneable - - - System.Runtime.Serialization.ISerializable - - - - - - System.Void - - - - - - diff --git a/doc/en/Vte/CharAttributes.xml b/doc/en/Vte/CharAttributes.xml index 0a5856718..260c919c8 100644 --- a/doc/en/Vte/CharAttributes.xml +++ b/doc/en/Vte/CharAttributes.xml @@ -32,32 +32,6 @@ To be added - - - Field - - System.Int64 - - - - - To be added - To be added - - - - - Field - - System.Int64 - - - - - To be added - To be added - - Field @@ -100,5 +74,31 @@ To be added + + + Property + + System.Int64 + + + + To be added + a + To be added + + + + + Property + + System.Int64 + + + + To be added + a + To be added + + - \ No newline at end of file + diff --git a/doc/en/Vte/Ring.xml b/doc/en/Vte/Ring.xml index 06d7b1112..92e1dd20f 100644 --- a/doc/en/Vte/Ring.xml +++ b/doc/en/Vte/Ring.xml @@ -32,45 +32,6 @@ To be added - - - Field - - System.Int64 - - - - - To be added - To be added - - - - - Field - - System.Int64 - - - - - To be added - To be added - - - - - Field - - System.Int64 - - - - - To be added - To be added - - Method @@ -87,5 +48,44 @@ To be added + + + Property + + System.Int64 + + + + To be added + a + To be added + + + + + Property + + System.Int64 + + + + To be added + a + To be added + + + + + Property + + System.Int64 + + + + To be added + a + To be added + + - \ No newline at end of file + diff --git a/generator/Field.cs b/generator/Field.cs index 3663ed113..3f12c7565 100644 --- a/generator/Field.cs +++ b/generator/Field.cs @@ -165,6 +165,8 @@ namespace GtkSharp.Generation { string wrapped = table.GetCSType (CType); string wrapped_name = SymbolTable.Table.MangleName (elem.GetAttribute ("cname")); + IGeneratable gen = table [CType]; + if (IsArray) { sw.WriteLine ("\t\t{0} {1} {2};", Access, CSType, StudlyName); } else if (IsPadding) { @@ -175,6 +177,16 @@ namespace GtkSharp.Generation { } else if (table.IsCallback (CType)) { // FIXME sw.WriteLine ("\t\tprivate {0} {1};", CSType, Name); + } else if (gen is LPGen || gen is LPUGen) { + sw.WriteLine ("\t\tprivate " + gen.MarshalType + " " + Name + ";"); + sw.WriteLine ("\t\tpublic " + CSType + " " + StudlyName + " {"); + sw.WriteLine ("\t\t\tget {"); + sw.WriteLine ("\t\t\t\treturn " + gen.FromNative (Name) + ";"); + sw.WriteLine ("\t\t\t}"); + sw.WriteLine ("\t\t\tset {"); + sw.WriteLine ("\t\t\t\t" + Name + " = " + gen.CallByName ("value") + ";"); + sw.WriteLine ("\t\t\t}"); + sw.WriteLine ("\t\t}"); } else if (table.IsObject (CType) || table.IsOpaque (CType)) { sw.WriteLine ("\t\tprivate {0} {1};", CSType, Name); diff --git a/gtk/gtk-api.raw b/gtk/gtk-api.raw index 15659e3be..5e1c58df2 100644 --- a/gtk/gtk-api.raw +++ b/gtk/gtk-api.raw @@ -173,11 +173,6 @@ - - - - - @@ -718,24 +713,6 @@ - - - - - - - - - - - - - - - - - - @@ -15182,7 +15159,6 @@ - diff --git a/sources/gtk-sharp-sources.xml b/sources/gtk-sharp-sources.xml index 5b94aea2f..047cc7c10 100644 --- a/sources/gtk-sharp-sources.xml +++ b/sources/gtk-sharp-sources.xml @@ -57,6 +57,7 @@ gtk+-2.4.1/gtk/gtkfilesystemwin32.h gtk+-2.4.1/gtk/gtkiconcache.c gtk+-2.4.1/gtk/gtkiconcache.h + gtk+-2.4.1/gtk/gtkiconthemeparser.h gtk+-2.4.1/gtk/gtkpathbar.c gtk+-2.4.1/gtk/gtkpathbar.h gtk+-2.4.1/gtk/gtkrbtree.c