GtkSharp/doc/en/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
..
Argv.xml 2005-01-11 Mike Kestner <mkestner@novell.com> 2005-01-11 20:49:50 +00:00
Boxed.xml 2004-07-02 Mike Kestner <mkestner@ximian.com> 2004-07-02 14:56:07 +00:00
CDeclCallbackAttribute.xml add docs for new cdecl cb attr and doc ObjectManager 2005-03-25 21:22:18 +00:00
ClassInitializerAttribute.xml 2004-12-23 Mike Kestner <mkestner@novell.com> 2004-12-23 22:59:59 +00:00
ConnectBeforeAttribute.xml 2004-07-02 Mike Kestner <mkestner@ximian.com> 2004-07-02 14:56:07 +00:00
DefaultSignalHandlerAttribute.xml 2004-07-02 Mike Kestner <mkestner@ximian.com> 2004-07-02 14:56:07 +00:00
DelegateWrapper.xml 2003-12-22 John Luke <jluke@cfl.rr.com> 2003-12-24 01:35:30 +00:00
DestroyHelper.xml * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
DestroyNotify.xml * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
EnumWrapper.xml 2004-07-02 Mike Kestner <mkestner@ximian.com> 2004-07-02 16:54:40 +00:00
FileUtils.xml Contributions from chris@turchin.net 2004-06-27 14:47:17 +00:00
GException.xml 2004-07-02 Mike Kestner <mkestner@ximian.com> 2004-07-02 16:54:40 +00:00
GString.xml updater run for new api 2004-11-05 19:49:12 +00:00
GType.xml * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
GTypeAttribute.xml * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
Idle.xml 2004-07-02 Mike Kestner <mkestner@ximian.com> 2004-07-02 16:54:40 +00:00
IdleHandler.xml 2003-12-22 John Luke <jluke@cfl.rr.com> 2003-12-24 01:35:30 +00:00
IWrapper.xml 2004-07-02 Mike Kestner <mkestner@ximian.com> 2004-07-02 16:54:40 +00:00
List.xml Contributions from chris@turchin.net 2004-06-27 14:47:17 +00:00
ListBase.xml updater run for new api 2004-11-05 19:49:12 +00:00
Log.xml Contributions from chris@turchin.net 2004-06-27 14:47:17 +00:00
LogFunc.xml 2003-08-29 John Luke <jluke@cfl.rr.com> 2003-08-30 02:35:39 +00:00
LogLevelFlags.xml 2004-06-29 Mike Kestner <mkestner@ximian.com> 2004-06-29 16:25:31 +00:00
MainContext.xml some GLib and Atk stuff 2004-07-27 21:00:05 +00:00
MainLoop.xml updater run for new api 2004-11-05 19:49:12 +00:00
Markup.xml some GLib and Atk stuff 2004-07-27 21:00:05 +00:00
Marshaller.xml * gnome/Gnome.metadata: mark GnomeTriggerActionFunction's char** 2005-04-22 19:43:46 +00:00
MissingIntPtrCtorException.xml another glib type. 2004-07-02 21:59:00 +00:00
NotifyArgs.xml * glib/Object.cs (AddNotification, RemoveNotification): methods to 2005-01-28 16:44:30 +00:00
NotifyHandler.xml * glib/Object.cs (AddNotification, RemoveNotification): methods to 2005-01-28 16:44:30 +00:00
Object.xml oops, forgot to doc PersistentData 2005-03-15 17:16:21 +00:00
ObjectManager.xml * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
Opaque.xml 2003-12-22 John Luke <jluke@cfl.rr.com> 2003-12-24 01:35:30 +00:00
PrintFunc.xml 2003-08-29 John Luke <jluke@cfl.rr.com> 2003-08-30 02:35:39 +00:00
PropertyAttribute.xml Redo child property handling; now we generate classes to hold 2004-11-18 20:31:22 +00:00
Signal.xml docs for the new Signal class 2005-02-02 23:58:49 +00:00
SignalArgs.xml 2004-05-28 Mike Kestner <mkestner@ximian.com> 2004-05-28 16:59:21 +00:00
SignalAttribute.xml more glib docs 2004-07-02 19:18:25 +00:00
SignalCallback.xml 2004-05-28 Mike Kestner <mkestner@ximian.com> 2004-05-28 16:59:21 +00:00
SList.xml more glib docs 2004-07-02 19:18:25 +00:00
Source.xml 2003-12-04 John Luke <jluke@cfl.rr.com> 2003-12-04 21:09:30 +00:00
Thread.xml 2003-12-04 John Luke <jluke@cfl.rr.com> 2003-12-04 21:09:30 +00:00
Timeout.xml 2004-06-24 Mike Kestner <mkestner@ximian.com> 2004-06-24 19:35:28 +00:00
TimeoutHandler.xml 2003-12-22 John Luke <jluke@cfl.rr.com> 2003-12-24 01:35:30 +00:00
TODO 2004-03-05 Hector Gomez M <hectorgm@ciencias.unam.mx> 2004-03-05 13:40:13 +00:00
TypeConverter.xml * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
TypeFundamentals.xml 2004-06-29 Mike Kestner <mkestner@ximian.com> 2004-06-29 16:25:31 +00:00
UnwrappedObject.xml 2003-12-22 John Luke <jluke@cfl.rr.com> 2003-12-24 01:35:30 +00:00
Value.xml * updater/updater.cs (Compare): handle BaseType changes 2005-02-15 21:53:03 +00:00
ValueArray.xml 2004-05-27 Mike Kestner <mkestner@ximian.com> 2004-05-27 19:02:19 +00:00
WrapperClassAttribute.xml 2004-05-28 Mike Kestner <mkestner@ximian.com> 2004-05-28 16:59:21 +00:00