1
// ObjectBase.cs - Base class for Object types
3
// Authors: Mike Kestner <mkestner@novell.com>
5
// Copyright (c) 2005 Novell, Inc.
7
// This program is free software; you can redistribute it and/or
8
// modify it under the terms of version 2 of the GNU General Public
9
// License as published by the Free Software Foundation.
11
// This program is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
// General Public License for more details.
16
// You should have received a copy of the GNU General Public
17
// License along with this program; if not, write to the
18
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
// Boston, MA 02111-1307, USA.
22
namespace GtkSharp.Generation {
27
public abstract class ObjectBase : HandleBase {
29
protected ObjectBase (XmlElement ns, XmlElement elem) : base (ns, elem) {}
31
public override string FromNative (string var, bool owned)
33
return "GLib.Object.GetObject(" + var + (owned ? ", true" : "") + ") as " + QualifiedName;