2007-10-15 Mike Kestner <mkestner@novell.com>

* generator/InterfaceGen.cs : gen Handle props as overrides.
	* glib/GInterfaceAdapter.cs : add abstract Handle prop.
	* glib/Value.cs: add ctor (GInterfaceAdapter).

svn path=/trunk/gtk-sharp/; revision=87532
This commit is contained in:
Mike Kestner 2007-10-15 20:25:05 +00:00
parent fefc143c8e
commit 3341e20c13
4 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-10-15 Mike Kestner <mkestner@novell.com>
* generator/InterfaceGen.cs : gen Handle props as overrides.
* glib/GInterfaceAdapter.cs : add abstract Handle prop.
* glib/Value.cs: add ctor (GInterfaceAdapter).
2007-10-04 Peter Johanson <peter@peterjohanson.com>
* gtk/Gtk.metadata: Make the public fields on Gtk.Rcstyle writeable.

View File

@ -177,7 +177,7 @@ namespace GtkSharp.Generation {
void GenerateHandleProp (StreamWriter sw)
{
sw.WriteLine ("\t\tpublic IntPtr Handle {");
sw.WriteLine ("\t\tpublic override IntPtr Handle {");
sw.WriteLine ("\t\t\tget {");
sw.WriteLine ("\t\t\t\treturn implementor == null ? IntPtr.Zero : implementor.Handle;");
sw.WriteLine ("\t\t\t}");

View File

@ -52,6 +52,8 @@ namespace GLib {
public abstract GType GType { get; }
public abstract IntPtr Handle { get; }
internal GInterfaceInfo Info {
get {
return info;

View File

@ -133,6 +133,10 @@ namespace GLib {
g_value_set_object (ref this, val == null ? IntPtr.Zero : val.Handle);
}
public Value (GLib.GInterfaceAdapter val) : this (val == null ? GType.Object : val.GType)
{
g_value_set_object (ref this, val == null ? IntPtr.Zero : val.Handle);
}
public Value (GLib.Object obj, string prop_name)
{