mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 13:25:34 +00:00
aee0a1f894
* generator/GObjectGen.cs: Added new generatable to handle plain GObjects the same way we do subclasses. * generator/ManualGen.cs: Make FromNative/FromNativeReturn virtual to allow overriding. * generator/SymbolTable.cs: Use GObjectGen instead of ManualGen for GObject. * generator/Makefile.am: Add GObjectGen.cs. svn path=/trunk/gtk-sharp/; revision=25651
23 lines
525 B
C#
23 lines
525 B
C#
// GtkSharp.Generation.GObjectGen.cs - The GObject generatable
|
|
//
|
|
// Note: This generatable only handles GObject* values. GObject subclasses
|
|
// are handled by ObjectGen.
|
|
//
|
|
// Author: Rachel Hestilow <rachel@nullenvoid.com>
|
|
//
|
|
// (c) 2004 Rachel Hestilow
|
|
|
|
namespace GtkSharp.Generation {
|
|
|
|
public class GObjectGen : ManualGen {
|
|
|
|
public GObjectGen () : base ("GObject", "GLib.Object") {}
|
|
|
|
public override string FromNative(string var)
|
|
{
|
|
return "GLib.Object.GetObject (" + var + ")";
|
|
}
|
|
}
|
|
}
|
|
|