Ryujinx-GtkSharp/sample
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
..
DbClient 2004-02-10 Mike Kestner <mkestner@ximian.com> 2004-02-10 20:35:40 +00:00
gconf kill useless .cvsignore files 2005-04-20 20:11:00 +00:00
gnomevfs kill useless .cvsignore files 2005-04-20 20:11:00 +00:00
GtkDemo * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
panelapplet merge to HEAD of jeroen and friends' work on the 2-4 branch. HEAD 2004-10-29 20:33:07 +00:00
pixmaps kill useless .cvsignore files 2005-04-20 20:11:00 +00:00
rsvg kill useless .cvsignore files 2005-04-20 20:11:00 +00:00
test kill useless .cvsignore files 2005-04-20 20:11:00 +00:00
Actions.cs 2005-02-10 Jeroen Zwartepoorte <jeroen@xs4all.nl> 2005-02-10 21:50:50 +00:00
ButtonApp.cs 2004-03-12 Mike Kestner <mkestner@ximian.com> 2004-03-12 21:18:11 +00:00
cairo-sample.exe.config.in Update Cairo Sample 2004-09-06 23:54:35 +00:00
CairoSample.cs Update Cairo Sample 2004-09-06 23:54:35 +00:00
CalendarApp.cs 2004-03-12 Mike Kestner <mkestner@ximian.com> 2004-03-12 21:18:11 +00:00
CanvasExample.cs * generator/CallbackGen.cs: 2004-12-21 18:46:42 +00:00
CustomCellRenderer.cs * generator/CallbackGen.cs: 2004-12-21 18:46:42 +00:00
CustomWidget.cs 2005-01-25 John Luke <john.luke@gmail.com> 2005-01-25 21:18:33 +00:00
DrawingSample.cs 2005-01-11 Mike Kestner <mkestner@novell.com> 2005-01-12 00:11:08 +00:00
Fifteen.cs * generator/CallbackGen.cs: 2004-12-21 18:46:42 +00:00
GladeTest.cs * generator/CallbackGen.cs: 2004-12-21 18:46:42 +00:00
GladeViewer.cs 2004-02-12 Mike Kestner <mkestner@ximian.com> 2004-02-13 21:16:12 +00:00
GnomeHelloWorld.cs 2004-05-07 Mike Kestner <mkestner@ximian.com> 2004-05-07 15:01:56 +00:00
GstPlayer.cs add usage check and message 2003-11-07 21:56:24 +00:00
gtk-html-sample.cs Remove unnecessary config file 2005-04-26 17:10:10 +00:00
GtkCairo.cs Update Cairo Sample 2004-09-06 23:54:35 +00:00
HelloWorld.cs 2004-02-10 Mike Kestner <mkestner@ximian.com> 2004-02-10 20:35:40 +00:00
Makefile.am fix dist for the CustomNotebook to PolarFixed sample switch 2005-04-12 13:54:13 +00:00
makefile.win32 oops 2002-06-25 10:49:23 +00:00
ManagedTreeViewDemo.cs 2005-03-31 Mike Kestner <mkestner@novell.com> 2005-03-31 16:31:31 +00:00
Menu.cs 2004-03-12 Mike Kestner <mkestner@ximian.com> 2004-03-12 21:18:11 +00:00
NodeViewDemo.cs 2004-12-17 Mike Kestner <mkestner@novell.com> 2004-12-17 20:32:33 +00:00
PolarFixed.cs 2005-04-17 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com> 2005-04-17 08:42:47 +00:00
PrintSample.cs merge to HEAD of jeroen and friends' work on the 2-4 branch. HEAD 2004-10-29 20:33:07 +00:00
Scribble.cs 2004-05-18 Todd Berman <tberman@sevenl.net> 2004-05-18 05:48:10 +00:00
ScribbleXInput.cs * generator/CallbackGen.cs: 2004-12-21 18:46:42 +00:00
Size.cs * generator/ManagedCallString.cs (Setup, Finish, ToString): Add 2004-12-16 23:38:35 +00:00
Subclass.cs 2004-12-23 Mike Kestner <mkestner@novell.com> 2004-12-23 22:59:59 +00:00
test.glade 2002-09-13 Ricardo Fernndez Pascual <ric@users.sourceforge.net> 2002-09-13 11:38:36 +00:00
TestDnd.cs merge to HEAD of jeroen and friends' work on the 2-4 branch. HEAD 2004-10-29 20:33:07 +00:00
TestVfs.cs 2004-12-08 Jeroen Zwartepoorte <jeroen@xs4all.nl> 2004-12-08 08:47:18 +00:00
TreeViewDemo.cs 2004-12-16 Mike Kestner <mkestner@novell.com> 2004-12-16 20:30:43 +00:00
VteTest.cs 2004-07-05 John Luke <jluke@cfl.rr.com> 2004-07-06 00:52:13 +00:00