mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
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:
parent
fefc143c8e
commit
3341e20c13
@ -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>
|
2007-10-04 Peter Johanson <peter@peterjohanson.com>
|
||||||
|
|
||||||
* gtk/Gtk.metadata: Make the public fields on Gtk.Rcstyle writeable.
|
* gtk/Gtk.metadata: Make the public fields on Gtk.Rcstyle writeable.
|
||||||
|
@ -177,7 +177,7 @@ namespace GtkSharp.Generation {
|
|||||||
|
|
||||||
void GenerateHandleProp (StreamWriter sw)
|
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\tget {");
|
||||||
sw.WriteLine ("\t\t\t\treturn implementor == null ? IntPtr.Zero : implementor.Handle;");
|
sw.WriteLine ("\t\t\t\treturn implementor == null ? IntPtr.Zero : implementor.Handle;");
|
||||||
sw.WriteLine ("\t\t\t}");
|
sw.WriteLine ("\t\t\t}");
|
||||||
|
@ -52,6 +52,8 @@ namespace GLib {
|
|||||||
|
|
||||||
public abstract GType GType { get; }
|
public abstract GType GType { get; }
|
||||||
|
|
||||||
|
public abstract IntPtr Handle { get; }
|
||||||
|
|
||||||
internal GInterfaceInfo Info {
|
internal GInterfaceInfo Info {
|
||||||
get {
|
get {
|
||||||
return info;
|
return info;
|
||||||
|
@ -133,6 +133,10 @@ namespace GLib {
|
|||||||
g_value_set_object (ref this, val == null ? IntPtr.Zero : val.Handle);
|
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)
|
public Value (GLib.Object obj, string prop_name)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user