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

* generator/SymbolTable.cs: mappings for GCallback and GSourceFunc.
	* glib/GCallback.cs: GCallback declaration.
	* glib/Source.cs: GSourceFunc declaration.

svn path=/trunk/gtk-sharp/; revision=88126
This commit is contained in:
Mike Kestner 2007-10-24 20:13:08 +00:00
parent 0347cd44dc
commit 1fa0231217
5 changed files with 41 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-10-24 Mike Kestner <mkestner@novell.com>
* generator/SymbolTable.cs: mappings for GCallback and GSourceFunc.
* glib/GCallback.cs: GCallback declaration.
* glib/Source.cs: GSourceFunc declaration.
2007-10-24 Mike Kestner <mkestner@novell.com>
* generator/VirtualMethod.cs: clean up compiler warning and duplicate

View file

@ -74,6 +74,8 @@ namespace GtkSharp.Generation {
AddType (new SimpleGen ("gdouble", "double", "0.0"));
AddType (new SimpleGen ("double", "double", "0.0"));
AddType (new SimpleGen ("GQuark", "int", "0"));
AddType (new SimpleGen ("GSourceFunc", "GLib.GSourceFunc", "null"));
AddType (new SimpleGen ("GCallback", "GLib.GCallback", "null"));
// platform specific integer types.
AddType (new LPGen ("ssize_t"));

29
glib/GCallback.cs Normal file
View file

@ -0,0 +1,29 @@
// GLib.Callback.cs - Callback delegate
//
// Author: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2007 Novell, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
namespace GLib {
using System;
[CDeclCallback]
public delegate void GCallback ();
}

View file

@ -27,6 +27,7 @@ sources = \
EnumWrapper.cs \
ExceptionManager.cs \
FileUtils.cs \
GCallback.cs \
GException.cs \
GInterfaceAdapter.cs \
GInterfaceAttribute.cs \

View file

@ -25,6 +25,9 @@ namespace GLib {
using System.Collections;
using System.Runtime.InteropServices;
[CDeclCallback]
public delegate bool GSourceFunc ();
//
// Base class for IdleProxy and TimeoutProxy
//