GtkSharp/glib
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
..
glue kill useless .cvsignore files 2005-04-20 20:11:00 +00:00
Argv.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
Boxed.cs mark Boxed [Obsolete] 2004-10-21 01:08:10 +00:00
CDeclCallbackAttribute.cs 2005-03-23 Mike Kestner <mkestner@novell.com> 2005-03-23 20:35:15 +00:00
ClassInitializerAttribute.cs 2004-12-23 Mike Kestner <mkestner@novell.com> 2004-12-23 22:59:59 +00:00
ConnectBeforeAttribute.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
DefaultSignalHandlerAttribute.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
DelegateWrapper.cs 2005-03-25 Mike Kestner <mkestner@novell.com> 2005-03-25 17:57:15 +00:00
DestroyNotify.cs * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
EnumWrapper.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
FileUtils.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
GException.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
glib-sharp.dll.config.in 2004-04-29 Mike Kestner <mkestner@ximian.com> 2004-04-29 15:00:24 +00:00
GString.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
GType.cs * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
GTypeAttribute.cs * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
Idle.cs 2005-02-28 Mike Kestner <mkestner@novell.com> 2005-02-28 18:11:24 +00:00
IWrapper.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
List.cs 2004-12-07 Mike Kestner <mkestner@novell.com> 2004-12-07 19:03:55 +00:00
ListBase.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
Log.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
MainContext.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
MainLoop.cs 2004-08-25 John Luke <john.luke@gmail.com> 2004-08-25 18:11:41 +00:00
Makefile.am * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
makefile.win32 2005-03-23 Mike Kestner <mkestner@novell.com> 2005-03-23 20:35:15 +00:00
ManagedValue.cs 2005-03-31 Mike Kestner <mkestner@novell.com> 2005-03-31 16:31:31 +00:00
Markup.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
Marshaller.cs * gnome/Gnome.metadata: mark GnomeTriggerActionFunction's char** 2005-04-22 19:43:46 +00:00
MissingIntPtrCtorException.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
NotifyHandler.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
Object.cs * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
ObjectManager.cs * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
Opaque.cs 2004-12-16 Tambet Ingo <tambet@ximian.com> 2004-12-16 17:09:58 +00:00
PropertyAttribute.cs Redo child property handling; now we generate classes to hold 2004-11-18 20:31:22 +00:00
Signal.cs 2005-03-25 Mike Kestner <mkestner@novell.com> 2005-03-25 17:57:15 +00:00
SignalArgs.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
SignalAttribute.cs remove a bunch of doc comments 2004-07-09 15:25:39 +00:00
SignalCallback.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
SList.cs 2004-12-07 Mike Kestner <mkestner@novell.com> 2004-12-07 19:03:55 +00:00
Source.cs 2005-02-28 Mike Kestner <mkestner@novell.com> 2005-02-28 18:11:24 +00:00
Thread.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
Timeout.cs 2005-02-28 Mike Kestner <mkestner@novell.com> 2005-02-28 18:11:24 +00:00
TypeConverter.cs * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
TypeFundamentals.cs remove a bunch of doc comments 2004-07-09 15:25:39 +00:00
UnwrappedObject.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
Value.cs * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
ValueArray.cs 2004-12-07 Mike Kestner <mkestner@novell.com> 2004-12-07 19:03:55 +00:00
WeakObject.cs 2005-03-25 Mike Kestner <mkestner@novell.com> 2005-03-25 17:57:15 +00:00