GtkSharp/sample/GtkDemo
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
..
images 2003-10-30 Daniel Kornhauser Eisenberg <dkor@alum.mit.edu> 2003-10-31 00:01:35 +00:00
DemoApplicationWindow.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoAttribute.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoButtonBox.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoClipboard.cs * generator/Parameters.cs (IsHidden): method to check if a 2005-05-02 20:10:03 +00:00
DemoColorSelection.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoDialog.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoDrawingArea.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoEditableCells.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoEntryCompletion.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoExpander.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoHyperText.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoIconView.cs * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
DemoImages.cs * generator/ClassBase.cs (ParseImplements): record both managed 2005-04-11 20:35:56 +00:00
DemoListStore.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoMain.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoMenus.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoPanes.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoPixbuf.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoRotatedText.cs add rotated text demo 2005-04-21 20:11:03 +00:00
DemoSizeGroup.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoStockBrowser.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoTextView.cs * pango/Scale.cs: rename the size constants to not have 2005-04-04 18:50:50 +00:00
DemoTreeStore.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
DemoUIManager.cs * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
Makefile.am add demo icon view 2005-04-22 00:46:57 +00:00
README * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some 2005-04-01 21:08:14 +00:00
TODO add demo icon view 2005-04-22 00:46:57 +00:00

This is a mostly complete port of gtk-demo to Gtk#; for notes on
what's missing, see the TODO file.

The original port was done by Daniel Kornhauser (dkor@alum.mit.edu),
with additions/changes/fixes by various other people, as seen in the
main gtk-sharp ChangeLog.

For the most part, the various demos should stay as close as possible
to the C version, so that GtkDemo.exe can be compared against gtk-demo
to make sure Gtk# is working correctly.