~ubuntu-branches/debian/sid/docky/sid

« back to all changes in this revision

Viewing changes to lib/gio-sharp/generator/ObjectBase.cs

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2012-01-19 19:03:38 UTC
  • mfrom: (1.1.14) (10.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20120119190338-n44q7tmqsrkudvk7
Tags: 2.1.3-2
* Upload to unstable
* debian/watch:
  + Look for xz tarballs from now on

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// ObjectBase.cs - Base class for Object types
2
 
//
3
 
// Authors:  Mike Kestner <mkestner@novell.com>
4
 
//
5
 
// Copyright (c) 2005 Novell, Inc.
6
 
//
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.
10
 
//
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.
15
 
//
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.
20
 
 
21
 
 
22
 
namespace GtkSharp.Generation {
23
 
 
24
 
        using System;
25
 
        using System.Xml;
26
 
 
27
 
        public abstract class ObjectBase : HandleBase {
28
 
 
29
 
                protected ObjectBase (XmlElement ns, XmlElement elem) : base (ns, elem) {}
30
 
                                        
31
 
                public override string FromNative (string var, bool owned)
32
 
                {
33
 
                        return "GLib.Object.GetObject(" + var + (owned ? ", true" : "") + ") as " + QualifiedName;
34
 
                }
35
 
        }
36
 
}