2002-08-09 Mike Kestner <mkestner@speakeasy.net>
* generator/SymbolTable.cs : make GLib.Value a manually_wrapped_type svn path=/trunk/gtk-sharp/; revision=6559
This commit is contained in:
parent
6d507c9625
commit
2d733eacb6
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-08-09 Mike Kestner <mkestner@speakeasy.net>
|
||||
|
||||
* generator/SymbolTable.cs : make GLib.Value a manually_wrapped_type
|
||||
|
||||
2002-08-08 Mike Kestner <mkestner@speakeasy.net>
|
||||
|
||||
* generator/Property.cs : getter usage fix
|
||||
|
|
|
@ -42,7 +42,6 @@ namespace GtkSharp.Generation {
|
|||
simple_types.Add ("guint1", "bool");
|
||||
simple_types.Add ("gpointer", "System.IntPtr");
|
||||
simple_types.Add ("guchar", "byte");
|
||||
simple_types.Add ("GValue", "GLib.Value");
|
||||
simple_types.Add ("GtkType", "int");
|
||||
simple_types.Add ("long", "long");
|
||||
simple_types.Add ("gulong", "ulong");
|
||||
|
@ -78,6 +77,7 @@ namespace GtkSharp.Generation {
|
|||
manually_wrapped_types = new Hashtable ();
|
||||
manually_wrapped_types.Add ("GdkEvent", "Gdk.Event");
|
||||
manually_wrapped_types.Add ("GSList", "GLib.SList");
|
||||
manually_wrapped_types.Add ("GValue", "GLib.Value");
|
||||
|
||||
dlls = new Hashtable();
|
||||
dlls.Add("Pango", "pango-1.0");
|
||||
|
@ -154,6 +154,8 @@ namespace GtkSharp.Generation {
|
|||
return "new GLib.SList (" + val + ")";
|
||||
} else if (c_type == "GdkEvent") {
|
||||
return "new Gdk.Event (" + val + ")";
|
||||
} else if (c_type == "GValue") {
|
||||
return "new GLib.Value (" + val + ")";
|
||||
} else {
|
||||
return "(" + GetCSType (c_type) + ") GLib.Object.GetObject(" + val + ")";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue