Ryujinx-GtkSharp/generator
Dan Winship 900b14290c * parser/gapi2xml.pl: make note of _get_type methods for enums
* */*-api.xml: Regen, adding gtype="..." to many enum types

	* generator/EnumGen.cs (Generate): if the enum has the
	"gtype" property, add a GTypeAttribute pointing to an internal
	FooGType class whose GType property can be used to get the enum's
	GType.

	* generator/ObjectGen.cs:
	s/ObjectManager.RegisterType/GType.Register/

	* glib/GTypeAttribute.cs: attribute for indicating a property that
	will return the GType of a type (particularly for enums, which
	can't have GType properties added to them).

	* glib/GType.cs: renamed from Type.cs to match the type name
	(public static readonly GType ...): add a few missing types.
	(Register): moved from ObjectManager.RegisterType
	(LookupGType): moved from TypeConverter.LookupType and extended to
	handle GTypeAttribute. Also, fix mappings for sbyte/byte/char, and
	return specific GTypes for Object subclasses rather than always
	returning GType.Object.	[Fixes #74699]
	(LookupType): moved from ObjectWrapper.LookupType
	(ToString): return the type name
	
	* glib/Object.cs (RegisterGType):
	s/ObjectManager.Register/GType.Register/
	(LookupGType): Make this protected internal so GType can access
	it.

	* glib/ObjectManager.cs (RegisterType): deprecate in favor of
	GType.Register.
	(LookupType): moved to GType
	
	* glib/TypeConverter.cs (LookupType): now a deprecated wrapper
	around GType.LookupGType.

	* glib/Value.cs: Use GType casts rather than TypeConverter

	* gtk/NodeStore.cs (ScanType):
	* gtk/ListStore.custom (ListStore): 
	* gtk/TreeStore.custom (TreeStore): Use (GType) cast rather than
	TypeConverter. Remove the error check and exception, since the
	cast never returns GType.Invalid. (The check probably predates
	GLib.ManagedValue.)

	* gnome/PanelAppletFactory.cs (Register): Use a GType cast rather
	than GLib.Object.LookupGType (which is no longer accessible after
	an mcs bugfix)

	* sample/GtkDemo/DemoIconView.cs (CreateStore): use the Type[]
	constructor rather than the GType[] constructor, since it
	translates typeof(Gdk.Pixbuf) correctly now.

svn path=/trunk/gtk-sharp/; revision=44038
2005-05-04 16:54:24 +00:00
..
AliasGen.cs 2004-12-27 Mike Kestner <mkestner@novell.com> 2004-12-27 17:38:52 +00:00
BoxedGen.cs 2005-04-04 Mike Kestner <mkestner@novell.com> 2005-04-04 16:27:08 +00:00
ByRefGen.cs 2004-12-26 Mike Kestner <mkestner@novell.com> 2004-12-26 21:22:50 +00:00
CallbackGen.cs * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
ChildProperty.cs Redo child property handling; now we generate classes to hold 2004-11-18 20:31:22 +00:00
ClassBase.cs * generator/ClassBase.cs (ParseImplements): record both managed 2005-04-11 20:35:56 +00:00
ClassGen.cs 2005-04-20 Mike Kestner <mkestner@novell.com> 2005-04-21 01:40:08 +00:00
CodeGenerator.cs 2005-01-08 Mike Kestner <mkestner@novell.com> 2005-01-09 00:26:45 +00:00
ConstStringGen.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
Ctor.cs 2005-04-04 Mike Kestner <mkestner@novell.com> 2005-04-04 16:27:08 +00:00
DESIGN some updates to generator/DESIGN 2004-12-27 18:02:52 +00:00
EnumGen.cs * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
FieldBase.cs Apply the parts of the generator reorganization from #69514 that 2005-05-02 18:40:30 +00:00
gapi2-codegen.in merge to HEAD of jeroen and friends' work on the 2-4 branch. HEAD 2004-10-29 20:33:07 +00:00
GenBase.cs 2004-12-27 Mike Kestner <mkestner@novell.com> 2004-12-27 21:32:08 +00:00
GenerationInfo.cs 2005-04-04 Mike Kestner <mkestner@novell.com> 2005-04-04 16:27:08 +00:00
IGeneratable.cs * generator/ManagedCallString.cs (Setup, Finish, ToString): Add 2004-12-16 23:38:35 +00:00
IManualMarshaler.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
ImportSignature.cs 2005-04-20 Mike Kestner <mkestner@novell.com> 2005-04-21 01:40:08 +00:00
InterfaceGen.cs 2004-12-26 Mike Kestner <mkestner@novell.com> 2004-12-26 19:33:34 +00:00
LPGen.cs 2004-12-27 Mike Kestner <mkestner@novell.com> 2004-12-27 17:38:52 +00:00
LPUGen.cs 2004-12-26 Mike Kestner <mkestner@novell.com> 2004-12-26 21:22:50 +00:00
Makefile.am Apply the parts of the generator reorganization from #69514 that 2005-05-02 18:40:30 +00:00
makefile.win32 2003-10-10 Mike Kestner <mkestner@ximian.com> 2003-10-10 18:58:19 +00:00
ManagedCallString.cs * generator/CallbackGen.cs: 2004-12-21 18:46:42 +00:00
ManualGen.cs 2004-12-27 Mike Kestner <mkestner@novell.com> 2004-12-27 17:38:52 +00:00
MarshalGen.cs 2004-12-27 Mike Kestner <mkestner@novell.com> 2004-12-27 17:38:52 +00:00
Method.cs * generator/Parameters.cs (IsHidden): method to check if a 2005-05-02 20:10:03 +00:00
MethodBase.cs * generator/MethodBase.cs (Validate): use CName rather than always 2005-02-11 15:07:22 +00:00
MethodBody.cs * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
ObjectGen.cs * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
OpaqueGen.cs 2005-04-20 Mike Kestner <mkestner@novell.com> 2005-04-21 01:40:08 +00:00
Parameters.cs * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
Parser.cs 2005-03-29 Mike Kestner <mkestner@novell.com> 2005-03-29 18:02:04 +00:00
Property.cs Apply the parts of the generator reorganization from #69514 that 2005-05-02 18:40:30 +00:00
PropertyBase.cs Apply the parts of the generator reorganization from #69514 that 2005-05-02 18:40:30 +00:00
ReturnValue.cs * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
Signal.cs 2005-03-28 Mike Kestner <mkestner@novell.com> 2005-03-28 18:26:00 +00:00
Signature.cs * generator/Parameters.cs (IsHidden): method to check if a 2005-05-02 20:10:03 +00:00
SimpleBase.cs 2004-12-27 Mike Kestner <mkestner@novell.com> 2004-12-27 20:00:55 +00:00
SimpleGen.cs 2004-12-26 Mike Kestner <mkestner@novell.com> 2004-12-26 21:22:50 +00:00
Statistics.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 16:35:15 +00:00
StructBase.cs Apply the parts of the generator reorganization from #69514 that 2005-05-02 18:40:30 +00:00
StructField.cs Apply the parts of the generator reorganization from #69514 that 2005-05-02 18:40:30 +00:00
StructGen.cs 2005-04-04 Mike Kestner <mkestner@novell.com> 2005-04-04 16:27:08 +00:00
SymbolTable.cs * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
VirtualMethod.cs 2005-01-26 Mike Kestner <mkestner@novell.com> 2005-01-26 19:17:07 +00:00
VMSignature.cs 2005-01-26 Mike Kestner <mkestner@novell.com> 2005-01-26 19:17:07 +00:00